mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Merge pull request #1571 from Azaezel/alpha41/evalExtension
eval echo aug
This commit is contained in:
commit
432318224e
|
|
@ -2365,9 +2365,9 @@ DefineEngineFunction( exec, bool, ( const char* fileName, bool noCalls, bool jou
|
|||
return Con::executeFile(fileName, noCalls, journalScript);
|
||||
}
|
||||
|
||||
DefineEngineFunction( eval, const char*, ( const char* consoleString ), , "eval(consoleString)" )
|
||||
DefineEngineFunction( eval, const char*, ( const char* consoleString, bool echo ), (false), "eval(consoleString)")
|
||||
{
|
||||
Con::EvalResult returnValue = Con::evaluate(consoleString, false, NULL);
|
||||
Con::EvalResult returnValue = Con::evaluate(consoleString, echo, NULL);
|
||||
|
||||
return Con::getReturnBuffer(returnValue.value.getString());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue