move parameters instead of copying.

This commit is contained in:
Jeff Hutchinson 2021-04-30 00:24:03 -04:00
parent 964fde8f09
commit dcd01e1231
2 changed files with 6 additions and 17 deletions

View file

@ -622,6 +622,11 @@ public:
currentRegisterArray->values[reg].setStringTableEntry(val);
}
TORQUE_FORCEINLINE void moveConsoleValue(S32 reg, ConsoleValue val)
{
currentRegisterArray->values[reg] = std::move(val);
}
void pushFrame(StringTableEntry frameName, Namespace *ns, S32 regCount);
void popFrame();