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

Method pushFLT

Engine/source/console/stringStack.cpp:182–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182ConsoleValue *ConsoleValueStack::pushFLT(float value)
183{
184 if (mStackPos == ConsoleValueStack::MaxStackDepth) {
185 AssertFatal(false, "Console Value Stack is empty");
186 return NULL;
187 }
188
189 //Con::printf("[%i]CSTK pushFLT %f", mStackPos, value);
190
191 mStack[mStackPos++].setFloatValue(value);
192 return &mStack[mStackPos-1];
193}
194
195static ConsoleValue gNothing;
196

Callers 2

execMethod · 0.80
executeMethod · 0.80

Calls 1

setFloatValueMethod · 0.45

Tested by

no test coverage detected