array Iterator_nextFree617 integer Iterator_firstFree801 integer Iterator_maxIndex102 array Iterator_typeId662 integer MyClass_firstFree137 = 0 integer MyClass_maxIndex195 = 0 integer Iterator_firstFree801 = 0 integer Iterator_maxIndex102 = 0 function initGlobals951() { } function main252() { initGlobals951(); init_Test144(); } function config121() { } function init_Test144() { local integer this163 this_163 = new_Iterator374(); if (Iterator_typeId_662[this_163] == 0) { if (this_163 == 0) { error171("Nullpointer exception when calling Iterator.hasNext"); } else { error171("Called Iterator.hasNext on invalid object."); }; } else { }; testSuccess559(); } IS_NATIVE function testSuccess559() { } function new_Iterator374() returns integer { local integer this193 if (Iterator_firstFree_801 == 0) { if (Iterator_maxIndex_102 < 32768) { Iterator_maxIndex_102 = (Iterator_maxIndex_102 + 1); this_193 = Iterator_maxIndex_102; Iterator_typeId_662[this_193] = 1; } else { error171("Out of memory: Could not create Iterator."); this_193 = 0; }; } else { Iterator_firstFree_801 = (Iterator_firstFree_801 - 1); this_193 = Iterator_nextFree_617[Iterator_firstFree_801]; Iterator_typeId_662[this_193] = 1; }; return this_193; } function error171(string msg333) { $debugPrint264((msg_333 + (" " + #getStackTrace()))); }