mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 11:13:16 +00:00
[MIRROR] Consts (#11652)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
committed by
GitHub
parent
5826f765e7
commit
9ffd5403b9
@@ -3,10 +3,10 @@
|
||||
/*
|
||||
File: Keywords
|
||||
*/
|
||||
var/const/KW_FAIL = 0 //Fatal error; stop parsing entire script.
|
||||
var/const/KW_PASS = 1 //OK
|
||||
var/const/KW_ERR = 2 //Non-fatal error, keyword couldn't be handled properly. Ignore keyword but continue on.
|
||||
var/const/KW_WARN = 3 //Warning
|
||||
#define KW_FAIL 0 //Fatal error; stop parsing entire script.
|
||||
#define KW_PASS 1 //OK
|
||||
#define KW_ERR 2 //Non-fatal error, keyword couldn't be handled properly. Ignore keyword but continue on.
|
||||
#define KW_WARN 3 //Warning
|
||||
|
||||
/*
|
||||
var/const/Class: n_Keyword
|
||||
@@ -156,3 +156,8 @@ var/const/Represents a special statement in the code triggered by a keyword.
|
||||
else
|
||||
parser.errors+=new/scriptError/BadToken(parser.curToken)
|
||||
return KW_FAIL
|
||||
|
||||
#undef KW_FAIL
|
||||
#undef KW_PASS
|
||||
#undef KW_ERR
|
||||
#undef KW_WARN
|
||||
|
||||
Reference in New Issue
Block a user