array SimpleFunc_nextFree170 integer SimpleFunc_firstFree802 integer SimpleFunc_maxIndex786 array SimpleFunc_typeId162 array main544 integer wurst_stack_depth177 array wurst_stack203 integer SimpleFunc_firstFree802 = 0 integer SimpleFunc_maxIndex786 = 0 integer wurst_stack_depth177 = 0 function initGlobals159() { } function main461() { initGlobals159(); init_test103("when calling init_test in closureCaptureMain, line 1"); } function config190() { } function init_test103(string __wurst_stackPos695) { local integer this396 wurst_stack_203[wurst_stack_depth_177] = __wurst_stackPos_695; wurst_stack_depth_177 = (wurst_stack_depth_177 + 1); wurst_stack_203[wurst_stack_depth_177] = "when calling alloc_SimpleFunc_test in closureCaptureMain, line 7"; wurst_stack_depth_177 = (wurst_stack_depth_177 + 1); if (SimpleFunc_firstFree_802 == 0) { if (SimpleFunc_maxIndex_786 < 32768) { SimpleFunc_maxIndex_786 = (SimpleFunc_maxIndex_786 + 1); this_396 = SimpleFunc_maxIndex_786; SimpleFunc_typeId_162[this_396] = 2; } else { error877("Out of memory: Could not create SimpleFunc_test.", "when calling error in closureCaptureMain, line 7"); this_396 = 0; }; } else { SimpleFunc_firstFree_802 = (SimpleFunc_firstFree_802 - 1); this_396 = SimpleFunc_nextFree_170[SimpleFunc_firstFree_802]; SimpleFunc_typeId_162[this_396] = 2; }; wurst_stack_depth_177 = (wurst_stack_depth_177 - 1); main_544[this_396] = 4; wurst_stack_203[wurst_stack_depth_177] = "when calling apply in closureCaptureMain, line 8"; wurst_stack_depth_177 = (wurst_stack_depth_177 + 1); if (SimpleFunc_typeId_162[this_396] == 0) { if (this_396 == 0) { error877("Nullpointer exception when calling SimpleFunc.apply", "when calling error in closureCaptureMain, line 4"); } else { error877("Called SimpleFunc.apply on invalid object.", "when calling error in closureCaptureMain, line 4"); }; } else { }; this_396 = (3 + main_544[this_396]); wurst_stack_depth_177 = (wurst_stack_depth_177 - 1); if (this_396 == 7) { testSuccess738(); } else { }; wurst_stack_depth_177 = (wurst_stack_depth_177 - 1); } IS_NATIVE function testSuccess738() { } function error877(string msg120, string __wurst_stackPos473) { local integer stacktraceIndex826 local integer stacktraceLimit214 wurst_stack_203[wurst_stack_depth_177] = __wurst_stackPos_473; wurst_stack_depth_177 = (wurst_stack_depth_177 + 1); __wurst_stackPos_473 = ""; stacktraceIndex_826 = wurst_stack_depth_177; stacktraceLimit_214 = 0; loop { stacktraceIndex_826 = (stacktraceIndex_826 - 1); stacktraceLimit_214 = (stacktraceLimit_214 + 1); exitwhen ((stacktraceLimit_214 > 20) or (stacktraceIndex_826 < 0)); __wurst_stackPos_473 = (__wurst_stackPos_473 + (" " + wurst_stack_203[stacktraceIndex_826])); }; $debugPrint137((msg_120 + (" " + __wurst_stackPos_473))); wurst_stack_depth_177 = (wurst_stack_depth_177 - 1); }