array SimpleFunc_nextFree767 integer SimpleFunc_firstFree137 integer SimpleFunc_maxIndex396 array SimpleFunc_typeId187 array main213 integer wurst_stack_depth116 array wurst_stack713 integer SimpleFunc_firstFree137 = 0 integer SimpleFunc_maxIndex396 = 0 integer wurst_stack_depth116 = 0 function initGlobals192() { } function main153() { initGlobals192(); init_test194("when calling init_test in closureCaptureMain, line 1"); } function config150() { } function init_test194(string __wurst_stackPos921) { local integer this172 wurst_stack_713[wurst_stack_depth_116] = __wurst_stackPos_921; wurst_stack_depth_116 = (wurst_stack_depth_116 + 1); wurst_stack_713[wurst_stack_depth_116] = "when calling alloc_SimpleFunc_test in closureCaptureMain, line 7"; wurst_stack_depth_116 = (wurst_stack_depth_116 + 1); if (SimpleFunc_firstFree_137 == 0) { if (SimpleFunc_maxIndex_396 < 32768) { SimpleFunc_maxIndex_396 = (SimpleFunc_maxIndex_396 + 1); this_172 = SimpleFunc_maxIndex_396; SimpleFunc_typeId_187[this_172] = 2; } else { error174("Out of memory: Could not create SimpleFunc_test.", "when calling error in closureCaptureMain, line 7"); this_172 = 0; }; } else { SimpleFunc_firstFree_137 = (SimpleFunc_firstFree_137 - 1); this_172 = SimpleFunc_nextFree_767[SimpleFunc_firstFree_137]; SimpleFunc_typeId_187[this_172] = 2; }; wurst_stack_depth_116 = (wurst_stack_depth_116 - 1); main_213[this_172] = 4; wurst_stack_713[wurst_stack_depth_116] = "when calling apply in closureCaptureMain, line 8"; wurst_stack_depth_116 = (wurst_stack_depth_116 + 1); if (SimpleFunc_typeId_187[this_172] == 0) { if (this_172 == 0) { error174("Nullpointer exception when calling SimpleFunc.apply", "when calling error in closureCaptureMain, line 4"); } else { error174("Called SimpleFunc.apply on invalid object.", "when calling error in closureCaptureMain, line 4"); }; } else { }; this_172 = (3 + main_213[this_172]); wurst_stack_depth_116 = (wurst_stack_depth_116 - 1); if (this_172 == 7) { testSuccess121(); } else { }; wurst_stack_depth_116 = (wurst_stack_depth_116 - 1); } IS_NATIVE function testSuccess121() { } function error174(string msg706, string __wurst_stackPos200) { local integer stacktraceIndex758 local integer stacktraceLimit185 wurst_stack_713[wurst_stack_depth_116] = __wurst_stackPos_200; wurst_stack_depth_116 = (wurst_stack_depth_116 + 1); __wurst_stackPos_200 = ""; stacktraceIndex_758 = wurst_stack_depth_116; stacktraceLimit_185 = 0; loop { stacktraceIndex_758 = (stacktraceIndex_758 - 1); stacktraceLimit_185 = (stacktraceLimit_185 + 1); exitwhen ((stacktraceLimit_185 > 20) or (stacktraceIndex_758 < 0)); __wurst_stackPos_200 = (__wurst_stackPos_200 + (" " + wurst_stack_713[stacktraceIndex_758])); }; $debugPrint138((msg_706 + (" " + __wurst_stackPos_200))); wurst_stack_depth_116 = (wurst_stack_depth_116 - 1); }