array SimpleFunc_nextFree774 integer SimpleFunc_firstFree678 integer SimpleFunc_maxIndex506 array SimpleFunc_typeId230 integer wurst_stack_depth144 array wurst_stack207 integer SimpleFunc_firstFree678 = 0 integer SimpleFunc_maxIndex506 = 0 integer wurst_stack_depth144 = 0 function initGlobals207() { } function main142() { initGlobals207(); init_test335("when calling init_test in closure_void_call, line 1"); } function config344() { } function init_test335(string __wurst_stackPos258) { local integer this166 wurst_stack_207[wurst_stack_depth_144] = __wurst_stackPos_258; wurst_stack_depth_144 = (wurst_stack_depth_144 + 1); wurst_stack_207[wurst_stack_depth_144] = "when calling alloc_SimpleFunc_test in closure_void_call, line 9"; wurst_stack_depth_144 = (wurst_stack_depth_144 + 1); if (SimpleFunc_firstFree_678 == 0) { if (SimpleFunc_maxIndex_506 < 32768) { SimpleFunc_maxIndex_506 = (SimpleFunc_maxIndex_506 + 1); this_166 = SimpleFunc_maxIndex_506; SimpleFunc_typeId_230[this_166] = 2; } else { error196("Out of memory: Could not create SimpleFunc_test.", "when calling error in closure_void_call, line 9"); this_166 = 0; }; } else { SimpleFunc_firstFree_678 = (SimpleFunc_firstFree_678 - 1); this_166 = SimpleFunc_nextFree_774[SimpleFunc_firstFree_678]; SimpleFunc_typeId_230[this_166] = 2; }; wurst_stack_depth_144 = (wurst_stack_depth_144 - 1); wurst_stack_207[wurst_stack_depth_144] = "when calling apply in closure_void_call, line 10"; wurst_stack_depth_144 = (wurst_stack_depth_144 + 1); if (SimpleFunc_typeId_230[this_166] == 0) { if (this_166 == 0) { error196("Nullpointer exception when calling SimpleFunc.apply", "when calling error in closure_void_call, line 4"); } else { error196("Called SimpleFunc.apply on invalid object.", "when calling error in closure_void_call, line 4"); }; } else { }; testSuccess206(); wurst_stack_depth_144 = ((wurst_stack_depth_144 - 1) - 1); } IS_NATIVE function testSuccess206() { } function error196(string msg990, string __wurst_stackPos296) { local integer stacktraceIndex967 local integer stacktraceLimit299 wurst_stack_207[wurst_stack_depth_144] = __wurst_stackPos_296; wurst_stack_depth_144 = (wurst_stack_depth_144 + 1); __wurst_stackPos_296 = ""; stacktraceIndex_967 = wurst_stack_depth_144; stacktraceLimit_299 = 0; loop { stacktraceIndex_967 = (stacktraceIndex_967 - 1); stacktraceLimit_299 = (stacktraceLimit_299 + 1); exitwhen ((stacktraceLimit_299 > 20) or (stacktraceIndex_967 < 0)); __wurst_stackPos_296 = (__wurst_stackPos_296 + (" " + wurst_stack_207[stacktraceIndex_967])); }; $debugPrint686((msg_990 + (" " + __wurst_stackPos_296))); wurst_stack_depth_144 = (wurst_stack_depth_144 - 1); }