array A_nextFree477 integer A_firstFree144 integer A_maxIndex197 array A_typeId196 integer A_firstFree144 = 0 integer A_maxIndex197 = 0 function initGlobals212() { } function main324() { initGlobals212(); init_test504(); } function config149() { } function init_test504() { local integer this214 if (A_firstFree_144 == 0) { if (A_maxIndex_197 < 32768) { A_maxIndex_197 = (A_maxIndex_197 + 1); this_214 = A_maxIndex_197; A_typeId_196[this_214] = 3; } else { error185("Out of memory: Could not create B_test."); this_214 = 0; }; } else { A_firstFree_144 = (A_firstFree_144 - 1); this_214 = A_nextFree_477[A_firstFree_144]; A_typeId_196[this_214] = 3; }; if (A_typeId_196[this_214] == 0) { if (this_214 == 0) { error185("Nullpointer exception when calling B.foo"); } else { error185("Called B.foo on invalid object."); }; } else { }; testSuccess170(); } IS_NATIVE function testSuccess170() { } function error185(string msg672) { $debugPrint965((msg_672 + (" " + #getStackTrace()))); }