| 60 | } |
| 61 | |
| 62 | void ConsoleValueStack::pushVar(ConsoleValue *variable) |
| 63 | { |
| 64 | if (mStackPos == ConsoleValueStack::MaxStackDepth) { |
| 65 | AssertFatal(false, "Console Value Stack is empty"); |
| 66 | return; |
| 67 | } |
| 68 | |
| 69 | switch (variable->type) |
| 70 | { |
| 71 | case ConsoleValue::TypeInternalInt: |
| 72 | mStack[mStackPos++].setIntValue((S32)variable->getIntValue()); |
| 73 | case ConsoleValue::TypeInternalFloat: |
| 74 | mStack[mStackPos++].setFloatValue((F32)variable->getFloatValue()); |
| 75 | default: |
| 76 | mStack[mStackPos++].setStackStringValue(variable->getStringValue()); |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | void ConsoleValueStack::pushValue(ConsoleValue &variable) |
| 81 | { |
nothing calls this directly
no test coverage detected