array A_nextFree119 integer A_firstFree859 integer A_maxIndex129 array A_typeId189 integer wurst_stack_depth173 array wurst_stack414 integer A_firstFree859 = 0 integer A_maxIndex129 = 0 integer wurst_stack_depth173 = 0 function initGlobals183() { } function main820() { local integer this140 initGlobals183(); wurst_stack_414[wurst_stack_depth_173] = "when calling init_B in protectedInOtherPackage, line 7"; wurst_stack_depth_173 = (wurst_stack_depth_173 + 1); this_140 = new_B182("when calling new_B in protectedInOtherPackage, line 13"); wurst_stack_414[wurst_stack_depth_173] = "when calling show in protectedInOtherPackage, line 13"; wurst_stack_depth_173 = (wurst_stack_depth_173 + 1); if (A_typeId_189[this_140] == 0) { if (this_140 == 0) { error898("Nullpointer exception when calling B.show", "when calling error in protectedInOtherPackage, line 10"); } else { error898("Called B.show on invalid object.", "when calling error in protectedInOtherPackage, line 10"); }; } else { }; testSuccess213(); wurst_stack_depth_173 = ((wurst_stack_depth_173 - 1) - 1); } function config100() { } IS_NATIVE function testSuccess213() { } function new_B182(string __wurst_stackPos613) returns integer { local integer this142 wurst_stack_414[wurst_stack_depth_173] = __wurst_stackPos_613; wurst_stack_depth_173 = (wurst_stack_depth_173 + 1); wurst_stack_414[wurst_stack_depth_173] = "when calling alloc_B in protectedInOtherPackage, line 9"; wurst_stack_depth_173 = (wurst_stack_depth_173 + 1); if (A_firstFree_859 == 0) { if (A_maxIndex_129 < 32768) { A_maxIndex_129 = (A_maxIndex_129 + 1); this_142 = A_maxIndex_129; A_typeId_189[this_142] = 2; } else { error898("Out of memory: Could not create B.", "when calling error in protectedInOtherPackage, line 9"); this_142 = 0; }; } else { A_firstFree_859 = (A_firstFree_859 - 1); this_142 = A_nextFree_119[A_firstFree_859]; A_typeId_189[this_142] = 2; }; wurst_stack_depth_173 = ((wurst_stack_depth_173 - 1) - 1); return this_142; } function error898(string msg145, string __wurst_stackPos292) { local integer stacktraceIndex789 local integer stacktraceLimit575 wurst_stack_414[wurst_stack_depth_173] = __wurst_stackPos_292; wurst_stack_depth_173 = (wurst_stack_depth_173 + 1); __wurst_stackPos_292 = ""; stacktraceIndex_789 = wurst_stack_depth_173; stacktraceLimit_575 = 0; loop { stacktraceIndex_789 = (stacktraceIndex_789 - 1); stacktraceLimit_575 = (stacktraceLimit_575 + 1); exitwhen ((stacktraceLimit_575 > 20) or (stacktraceIndex_789 < 0)); __wurst_stackPos_292 = (__wurst_stackPos_292 + (" " + wurst_stack_414[stacktraceIndex_789])); }; $debugPrint788((msg_145 + (" " + __wurst_stackPos_292))); wurst_stack_depth_173 = (wurst_stack_depth_173 - 1); }