mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 15:14:35 +00:00
Optionally allow to treat script assert as warning
This commit allows us to treat variable use before assign errors and local variables inside of the global scope as warnings instead of asserts. This will allow for easier porting of legacy scripts. It is highly recommended use this as an aid to port scripts, but can be used in production if needbe.
This commit is contained in:
parent
b5bd242e23
commit
2e03108856
6 changed files with 60 additions and 12 deletions
|
|
@ -275,6 +275,8 @@ namespace Compiler
|
|||
void *consoleAlloc(U32 size);
|
||||
void consoleAllocReset();
|
||||
|
||||
void scriptErrorHandler(const char* str);
|
||||
|
||||
extern bool gSyntaxError;
|
||||
extern bool gIsEvalCompile;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue