// this script was compiled with wurst 1.8.1.0-jenkins-Wurst-1366 globals integer SimpleFunc_firstFree=0 integer SimpleFunc_maxIndex=0 endglobals function error takes string msg returns nothing call BJDebugMsg(msg + "\n" + "") endfunction function initGlobals takes nothing returns nothing endfunction function main takes nothing returns nothing call initGlobals() if SimpleFunc_firstFree == 0 then if SimpleFunc_maxIndex < 32768 then set SimpleFunc_maxIndex = SimpleFunc_maxIndex + 1 else call error("Out of memory: Could not create SimpleFunc_test.") endif else set SimpleFunc_firstFree = SimpleFunc_firstFree - 1 endif endfunction function config takes nothing returns nothing endfunction