MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / pushVar

Method pushVar

Engine/source/console/stringStack.cpp:62–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62void 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
80void ConsoleValueStack::pushValue(ConsoleValue &variable)
81{

Callers

nothing calls this directly

Calls 6

setStackStringValueMethod · 0.80
setIntValueMethod · 0.45
getIntValueMethod · 0.45
setFloatValueMethod · 0.45
getFloatValueMethod · 0.45
getStringValueMethod · 0.45

Tested by

no test coverage detected