// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1366 globals integer array Pair_nextFree integer Pair_firstFree=0 integer Pair_maxIndex=0 integer array Pair_a 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_test takes nothing returns nothing local integer this if Pair_firstFree == 0 then if Pair_maxIndex < 32768 then set Pair_maxIndex = Pair_maxIndex + 1 set this = Pair_maxIndex else call error("Out of memory: Could not create OtherPair.") set this = 0 endif else set Pair_firstFree = Pair_firstFree - 1 set this = Pair_nextFree[Pair_firstFree] endif set Pair_a[this] = 4 if Pair_a[this] == 4 then call testSuccess() endif endfunction function main takes nothing returns nothing call initGlobals() call init_test() endfunction function config takes nothing returns nothing endfunction