array SimpleFunc_nextFree392 integer SimpleFunc_firstFree204 integer SimpleFunc_maxIndex259 array SimpleFunc_typeId213 integer wurst_stack_depth118 array wurst_stack206 integer SimpleFunc_firstFree204 = 0 integer SimpleFunc_maxIndex259 = 0 integer wurst_stack_depth118 = 0 function initGlobals143() { } function main116() { initGlobals143(); init_test195("when calling init_test in closure1, line 1"); } function config748() { } function init_test195(string __wurst_stackPos211) { local integer this136 wurst_stack_206[wurst_stack_depth_118] = __wurst_stackPos_211; wurst_stack_depth_118 = (wurst_stack_depth_118 + 1); wurst_stack_206[wurst_stack_depth_118] = "when calling alloc_SimpleFunc_test in closure1, line 6"; wurst_stack_depth_118 = (wurst_stack_depth_118 + 1); if (SimpleFunc_firstFree_204 == 0) { if (SimpleFunc_maxIndex_259 < 32768) { SimpleFunc_maxIndex_259 = (SimpleFunc_maxIndex_259 + 1); this_136 = SimpleFunc_maxIndex_259; SimpleFunc_typeId_213[this_136] = 2; } else { error142("Out of memory: Could not create SimpleFunc_test.", "when calling error in closure1, line 6"); this_136 = 0; }; } else { SimpleFunc_firstFree_204 = (SimpleFunc_firstFree_204 - 1); this_136 = SimpleFunc_nextFree_392[SimpleFunc_firstFree_204]; SimpleFunc_typeId_213[this_136] = 2; }; wurst_stack_depth_118 = (wurst_stack_depth_118 - 1); wurst_stack_206[wurst_stack_depth_118] = "when calling apply in closure1, line 7"; wurst_stack_depth_118 = (wurst_stack_depth_118 + 1); if (SimpleFunc_typeId_213[this_136] == 0) { if (this_136 == 0) { error142("Nullpointer exception when calling SimpleFunc.apply", "when calling error in closure1, line 4"); } else { error142("Called SimpleFunc.apply on invalid object.", "when calling error in closure1, line 4"); }; } else { }; wurst_stack_depth_118 = (wurst_stack_depth_118 - 1); testSuccess627(); wurst_stack_depth_118 = (wurst_stack_depth_118 - 1); } IS_NATIVE function testSuccess627() { } function error142(string msg197, string __wurst_stackPos823) { local integer stacktraceIndex358 local integer stacktraceLimit159 wurst_stack_206[wurst_stack_depth_118] = __wurst_stackPos_823; wurst_stack_depth_118 = (wurst_stack_depth_118 + 1); __wurst_stackPos_823 = ""; stacktraceIndex_358 = wurst_stack_depth_118; stacktraceLimit_159 = 0; loop { stacktraceIndex_358 = (stacktraceIndex_358 - 1); stacktraceLimit_159 = (stacktraceLimit_159 + 1); exitwhen ((stacktraceLimit_159 > 20) or (stacktraceIndex_358 < 0)); __wurst_stackPos_823 = (__wurst_stackPos_823 + (" " + wurst_stack_206[stacktraceIndex_358])); }; $debugPrint148((msg_197 + (" " + __wurst_stackPos_823))); wurst_stack_depth_118 = (wurst_stack_depth_118 - 1); }