array SimpleFunc_nextFree190 integer SimpleFunc_firstFree191 integer SimpleFunc_maxIndex174 array SimpleFunc_typeId114 integer wurst_stack_depth351 array wurst_stack162 integer SimpleFunc_firstFree191 = 0 integer SimpleFunc_maxIndex174 = 0 integer wurst_stack_depth351 = 0 function initGlobals248() { } function main147() { initGlobals248(); init_test203("when calling init_test in closure_void, line 1"); } function config615() { } function init_test203(string __wurst_stackPos502) { local integer this169 wurst_stack_162[wurst_stack_depth_351] = __wurst_stackPos_502; wurst_stack_depth_351 = (wurst_stack_depth_351 + 1); wurst_stack_162[wurst_stack_depth_351] = "when calling alloc_SimpleFunc_test in closure_void, line 6"; wurst_stack_depth_351 = (wurst_stack_depth_351 + 1); if (SimpleFunc_firstFree_191 == 0) { if (SimpleFunc_maxIndex_174 < 32768) { SimpleFunc_maxIndex_174 = (SimpleFunc_maxIndex_174 + 1); this_169 = SimpleFunc_maxIndex_174; SimpleFunc_typeId_114[this_169] = 2; } else { error595("Out of memory: Could not create SimpleFunc_test.", "when calling error in closure_void, line 6"); this_169 = 0; }; } else { SimpleFunc_firstFree_191 = (SimpleFunc_firstFree_191 - 1); this_169 = SimpleFunc_nextFree_190[SimpleFunc_firstFree_191]; SimpleFunc_typeId_114[this_169] = 2; }; wurst_stack_depth_351 = (wurst_stack_depth_351 - 1); wurst_stack_162[wurst_stack_depth_351] = "when calling apply in closure_void, line 9"; wurst_stack_depth_351 = (wurst_stack_depth_351 + 1); if (SimpleFunc_typeId_114[this_169] == 0) { if (this_169 == 0) { error595("Nullpointer exception when calling SimpleFunc.apply", "when calling error in closure_void, line 4"); } else { error595("Called SimpleFunc.apply on invalid object.", "when calling error in closure_void, line 4"); }; } else { }; testSuccess455(); wurst_stack_depth_351 = ((wurst_stack_depth_351 - 1) - 1); } IS_NATIVE function testSuccess455() { } function error595(string msg557, string __wurst_stackPos178) { local integer stacktraceIndex169 local integer stacktraceLimit665 wurst_stack_162[wurst_stack_depth_351] = __wurst_stackPos_178; wurst_stack_depth_351 = (wurst_stack_depth_351 + 1); __wurst_stackPos_178 = ""; stacktraceIndex_169 = wurst_stack_depth_351; stacktraceLimit_665 = 0; loop { stacktraceIndex_169 = (stacktraceIndex_169 - 1); stacktraceLimit_665 = (stacktraceLimit_665 + 1); exitwhen ((stacktraceLimit_665 > 20) or (stacktraceIndex_169 < 0)); __wurst_stackPos_178 = (__wurst_stackPos_178 + (" " + wurst_stack_162[stacktraceIndex_169])); }; $debugPrint181((msg_557 + (" " + __wurst_stackPos_178))); wurst_stack_depth_351 = (wurst_stack_depth_351 - 1); }