array SimpleFunc_nextFree197 integer SimpleFunc_firstFree172 integer SimpleFunc_maxIndex407 array SimpleFunc_typeId531 array y208 integer wurst_stack_depth907 array wurst_stack106 integer SimpleFunc_firstFree172 = 0 integer SimpleFunc_maxIndex407 = 0 integer wurst_stack_depth907 = 0 function initGlobals463() { } function main115() { initGlobals463(); wurst_stack_106[wurst_stack_depth_907] = "when calling init_test in captureParam, line 1"; wurst_stack_depth_907 = (wurst_stack_depth_907 + 1); test122(4, "when calling test in captureParam, line 10"); wurst_stack_depth_907 = (wurst_stack_depth_907 - 1); } function config190() { } function test122(integer y151, string __wurst_stackPos778) { local integer this173 wurst_stack_106[wurst_stack_depth_907] = __wurst_stackPos_778; wurst_stack_depth_907 = (wurst_stack_depth_907 + 1); wurst_stack_106[wurst_stack_depth_907] = "when calling alloc_SimpleFunc_test in captureParam, line 6"; wurst_stack_depth_907 = (wurst_stack_depth_907 + 1); if (SimpleFunc_firstFree_172 == 0) { if (SimpleFunc_maxIndex_407 < 32768) { SimpleFunc_maxIndex_407 = (SimpleFunc_maxIndex_407 + 1); this_173 = SimpleFunc_maxIndex_407; SimpleFunc_typeId_531[this_173] = 2; } else { error750("Out of memory: Could not create SimpleFunc_test.", "when calling error in captureParam, line 6"); this_173 = 0; }; } else { SimpleFunc_firstFree_172 = (SimpleFunc_firstFree_172 - 1); this_173 = SimpleFunc_nextFree_197[SimpleFunc_firstFree_172]; SimpleFunc_typeId_531[this_173] = 2; }; wurst_stack_depth_907 = (wurst_stack_depth_907 - 1); y_208[this_173] = y_151; wurst_stack_106[wurst_stack_depth_907] = "when calling apply in captureParam, line 7"; wurst_stack_depth_907 = (wurst_stack_depth_907 + 1); if (SimpleFunc_typeId_531[this_173] == 0) { if (this_173 == 0) { error750("Nullpointer exception when calling SimpleFunc.apply", "when calling error in captureParam, line 4"); } else { error750("Called SimpleFunc.apply on invalid object.", "when calling error in captureParam, line 4"); }; } else { }; y_151 = (3 + y_208[this_173]); wurst_stack_depth_907 = (wurst_stack_depth_907 - 1); if (y_151 == 7) { testSuccess213(); } else { }; wurst_stack_depth_907 = (wurst_stack_depth_907 - 1); } IS_NATIVE function testSuccess213() { } function error750(string msg176, string __wurst_stackPos914) { local integer stacktraceIndex172 local integer stacktraceLimit802 wurst_stack_106[wurst_stack_depth_907] = __wurst_stackPos_914; wurst_stack_depth_907 = (wurst_stack_depth_907 + 1); __wurst_stackPos_914 = ""; stacktraceIndex_172 = wurst_stack_depth_907; stacktraceLimit_802 = 0; loop { stacktraceIndex_172 = (stacktraceIndex_172 - 1); stacktraceLimit_802 = (stacktraceLimit_802 + 1); exitwhen ((stacktraceLimit_802 > 20) or (stacktraceIndex_172 < 0)); __wurst_stackPos_914 = (__wurst_stackPos_914 + (" " + wurst_stack_106[stacktraceIndex_172])); }; $debugPrint152((msg_176 + (" " + __wurst_stackPos_914))); wurst_stack_depth_907 = (wurst_stack_depth_907 - 1); }