Eliminate unnecessary uses of ConsoleFunction

This commit is contained in:
Lukas Joergensen 2018-04-17 21:41:29 +02:00
parent 6be736ff85
commit 2bbc716db6
12 changed files with 103 additions and 158 deletions

View file

@ -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);
}