array SimpleFunc_nextFree137 integer SimpleFunc_firstFree860 integer SimpleFunc_maxIndex124 array SimpleFunc_typeId591 integer wurst_stack_depth495 array wurst_stack961 integer SimpleFunc_firstFree860 = 0 integer SimpleFunc_maxIndex124 = 0 integer wurst_stack_depth495 = 0 function initGlobals129() { } function main675() { initGlobals129(); init_test616("when calling init_test in closure_void, line 1"); } function config654() { } function init_test616(string __wurst_stackPos146) { local integer this460 wurst_stack_961[wurst_stack_depth_495] = __wurst_stackPos_146; wurst_stack_depth_495 = (wurst_stack_depth_495 + 1); wurst_stack_961[wurst_stack_depth_495] = "when calling alloc_SimpleFunc_test in closure_void, line 6"; wurst_stack_depth_495 = (wurst_stack_depth_495 + 1); if (SimpleFunc_firstFree_860 == 0) { if (SimpleFunc_maxIndex_124 < 32768) { SimpleFunc_maxIndex_124 = (SimpleFunc_maxIndex_124 + 1); this_460 = SimpleFunc_maxIndex_124; SimpleFunc_typeId_591[this_460] = 2; } else { error208("Out of memory: Could not create SimpleFunc_test.", "when calling error in closure_void, line 6"); this_460 = 0; }; } else { SimpleFunc_firstFree_860 = (SimpleFunc_firstFree_860 - 1); this_460 = SimpleFunc_nextFree_137[SimpleFunc_firstFree_860]; SimpleFunc_typeId_591[this_460] = 2; }; wurst_stack_depth_495 = (wurst_stack_depth_495 - 1); wurst_stack_961[wurst_stack_depth_495] = "when calling apply in closure_void, line 9"; wurst_stack_depth_495 = (wurst_stack_depth_495 + 1); if (SimpleFunc_typeId_591[this_460] == 0) { if (this_460 == 0) { error208("Nullpointer exception when calling SimpleFunc.apply", "when calling error in closure_void, line 4"); } else { error208("Called SimpleFunc.apply on invalid object.", "when calling error in closure_void, line 4"); }; } else { }; testSuccess114(); wurst_stack_depth_495 = ((wurst_stack_depth_495 - 1) - 1); } IS_NATIVE function testSuccess114() { } function error208(string msg144, string __wurst_stackPos172) { local integer stacktraceIndex277 local integer stacktraceLimit169 wurst_stack_961[wurst_stack_depth_495] = __wurst_stackPos_172; wurst_stack_depth_495 = (wurst_stack_depth_495 + 1); __wurst_stackPos_172 = ""; stacktraceIndex_277 = wurst_stack_depth_495; stacktraceLimit_169 = 0; loop { stacktraceIndex_277 = (stacktraceIndex_277 - 1); stacktraceLimit_169 = (stacktraceLimit_169 + 1); exitwhen ((stacktraceLimit_169 > 20) or (stacktraceIndex_277 < 0)); __wurst_stackPos_172 = (__wurst_stackPos_172 + (" " + wurst_stack_961[stacktraceIndex_277])); }; $debugPrint324((msg_144 + (" " + __wurst_stackPos_172))); wurst_stack_depth_495 = (wurst_stack_depth_495 - 1); }