| 779 | } |
| 780 | |
| 781 | void ExprEvalState::popFrame() |
| 782 | { |
| 783 | AssertFatal( mStackDepth > 0, "ExprEvalState::popFrame - Stack Underflow!" ); |
| 784 | |
| 785 | #ifdef DEBUG_SPEW |
| 786 | validate(); |
| 787 | |
| 788 | Platform::outputDebugString( "[ConsoleInternal] Popping %sframe at %i", |
| 789 | getCurrentFrame().isOwner() ? "" : "shared ", mStackDepth - 1 ); |
| 790 | #endif |
| 791 | |
| 792 | mStackDepth --; |
| 793 | stack[ mStackDepth ]->reset(); |
| 794 | currentVariable = NULL; |
| 795 | |
| 796 | #ifdef DEBUG_SPEW |
| 797 | validate(); |
| 798 | #endif |
| 799 | } |
| 800 | |
| 801 | void ExprEvalState::pushFrameRef(S32 stackIndex) |
| 802 | { |