mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Eliminate unnecessary uses of ConsoleFunction
This commit is contained in:
parent
6be736ff85
commit
2bbc716db6
12 changed files with 103 additions and 158 deletions
|
|
@ -23,7 +23,7 @@
|
|||
#include <stdarg.h>
|
||||
|
||||
#include "core/strings/stringFunctions.h"
|
||||
#include "console/console.h"
|
||||
#include "console/engineAPI.h"
|
||||
|
||||
|
||||
//-------------------------------------- STATIC Declaration
|
||||
|
|
@ -167,8 +167,8 @@ const char* avar(const char *message, ...)
|
|||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
ConsoleFunction( Assert, void, 3, 3, "(condition, message) - Fatal Script Assertion" )
|
||||
DefineEngineFunction(Assert, void, (bool condition, const char* message),, "Fatal Script Assertion")
|
||||
{
|
||||
// Process Assertion.
|
||||
AssertISV( dAtob(argv[1]), argv[2] );
|
||||
// Process Assertion.
|
||||
AssertISV(condition, message);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue