mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-24 03:52:08 +00:00
Deprecate DEF-less definitions (#1193)
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
|
||||
TEST_NUM = 0
|
||||
DEF TEST_NUM = 0
|
||||
|
||||
MACRO test_expr
|
||||
TEST_NUM = TEST_NUM + 1
|
||||
DEF TEST_NUM = TEST_NUM + 1
|
||||
|
||||
IS_CONST = ISCONST(\1)
|
||||
DEF IS_CONST = ISCONST(\1)
|
||||
PRINTLN "Test #{d:TEST_NUM}: ISCONST reports {IS_CONST}"
|
||||
IF (\1) || 1 ; Only test if the expression can be evaluated
|
||||
WARN "Test #{d:TEST_NUM}: Compile-time constant"
|
||||
|
||||
Reference in New Issue
Block a user