array SimpleFunc_nextFree277 integer SimpleFunc_firstFree172 integer SimpleFunc_maxIndex240 array SimpleFunc_typeId947 integer wurst_stack_depth103 array wurst_stack652 integer SimpleFunc_firstFree172 = 0 integer SimpleFunc_maxIndex240 = 0 integer wurst_stack_depth103 = 0 function initGlobals112() { } function main134() { initGlobals112(); init_test234("when calling init_test in closure1, line 1"); } function config222() { } function init_test234(string __wurst_stackPos187) { local integer this150 wurst_stack_652[wurst_stack_depth_103] = __wurst_stackPos_187; wurst_stack_depth_103 = (wurst_stack_depth_103 + 1); wurst_stack_652[wurst_stack_depth_103] = "when calling alloc_SimpleFunc_test in closure1, line 6"; wurst_stack_depth_103 = (wurst_stack_depth_103 + 1); if (SimpleFunc_firstFree_172 == 0) { if (SimpleFunc_maxIndex_240 < 32768) { SimpleFunc_maxIndex_240 = (SimpleFunc_maxIndex_240 + 1); this_150 = SimpleFunc_maxIndex_240; SimpleFunc_typeId_947[this_150] = 2; } else { error195("Out of memory: Could not create SimpleFunc_test.", "when calling error in closure1, line 6"); this_150 = 0; }; } else { SimpleFunc_firstFree_172 = (SimpleFunc_firstFree_172 - 1); this_150 = SimpleFunc_nextFree_277[SimpleFunc_firstFree_172]; SimpleFunc_typeId_947[this_150] = 2; }; wurst_stack_depth_103 = (wurst_stack_depth_103 - 1); wurst_stack_652[wurst_stack_depth_103] = "when calling apply in closure1, line 7"; wurst_stack_depth_103 = (wurst_stack_depth_103 + 1); if (SimpleFunc_typeId_947[this_150] == 0) { if (this_150 == 0) { error195("Nullpointer exception when calling SimpleFunc.apply", "when calling error in closure1, line 4"); } else { error195("Called SimpleFunc.apply on invalid object.", "when calling error in closure1, line 4"); }; } else { }; wurst_stack_depth_103 = (wurst_stack_depth_103 - 1); testSuccess306(); wurst_stack_depth_103 = (wurst_stack_depth_103 - 1); } IS_NATIVE function testSuccess306() { } function error195(string msg203, string __wurst_stackPos974) { local integer stacktraceIndex191 local integer stacktraceLimit422 wurst_stack_652[wurst_stack_depth_103] = __wurst_stackPos_974; wurst_stack_depth_103 = (wurst_stack_depth_103 + 1); __wurst_stackPos_974 = ""; stacktraceIndex_191 = wurst_stack_depth_103; stacktraceLimit_422 = 0; loop { stacktraceIndex_191 = (stacktraceIndex_191 - 1); stacktraceLimit_422 = (stacktraceLimit_422 + 1); exitwhen ((stacktraceLimit_422 > 20) or (stacktraceIndex_191 < 0)); __wurst_stackPos_974 = (__wurst_stackPos_974 + (" " + wurst_stack_652[stacktraceIndex_191])); }; $debugPrint362((msg_203 + (" " + __wurst_stackPos_974))); wurst_stack_depth_103 = (wurst_stack_depth_103 - 1); }