- Joined
- Oct 11, 2012
- Messages
- 711
Hey ,guys. How to check if all the instances have been deallocated or removed from the linked list in a struct?
I try to check it by calling the following static method:
If all the results are zero, then it means all instances have been properly removed from the list, right? If so, how about deallocation?
I try to check it by calling the following static method:
JASS:
private static method counter takes nothing returns nothing
local thistype this = thistype(0).next
loop
exitwhen this == 0
call BJDebugMsg(I2S(this.next))
call BJDebugMsg(I2S(this.prev))
set this = this.next
endloop
endmethod
If all the results are zero, then it means all instances have been properly removed from the list, right? If so, how about deallocation?
Last edited: