// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1366 globals integer A_x=0 integer array Runnable_nextFree integer Runnable_firstFree=0 integer Runnable_maxIndex=0 integer array Runnable_typeId endglobals native testSuccess takes nothing returns nothing function initGlobals takes nothing returns nothing endfunction function error takes string msg returns nothing call BJDebugMsg(msg + "\n" + "") endfunction function init_A takes nothing returns nothing local integer this if Runnable_firstFree == 0 then if Runnable_maxIndex < 32768 then set Runnable_maxIndex = Runnable_maxIndex + 1 set this = Runnable_maxIndex set Runnable_typeId[this] = 2 else call error("Out of memory: Could not create Runnable_twice_A.") set this = 0 endif else set Runnable_firstFree = Runnable_firstFree - 1 set this = Runnable_nextFree[Runnable_firstFree] set Runnable_typeId[this] = 2 endif if Runnable_typeId[this] == 0 then if this == 0 then call error("Nullpointer exception when calling Runnable.run") else call error("Called Runnable.run on invalid object.") endif endif set A_x = A_x + 1 if Runnable_typeId[this] == 0 then if this == 0 then call error("Nullpointer exception when calling Runnable.run") else call error("Called Runnable.run on invalid object.") endif endif set A_x = A_x + 1 if A_x == 2 then call testSuccess() endif endfunction function main takes nothing returns nothing call initGlobals() call init_A() endfunction function config takes nothing returns nothing endfunction