Ejemplo n.º 1
0
        /// <summary>
        /// Clears the callstack, updates memory accounting, halts the script
        /// </summary>
        public void StateChangePrep()
        {
            //update memory accounting, we must deallocate the memory
            //for calls
            foreach (StackFrame frame in Calls)
            {
                MemInfo.CompleteCall(frame);
            }

            RunState = Status.Waiting;
            TopFrame = null;
            Calls.Clear();
            Operands.Clear();
            EventQueue.Clear();
        }