mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-29 22:37:50 +00:00
Make error messages for "undefined" built-ins more accurate (#1501)
This commit is contained in:
15
test/asm/builtin-reserved.asm
Normal file
15
test/asm/builtin-reserved.asm
Normal file
@@ -0,0 +1,15 @@
|
||||
ASSERT !DEF(_NARG)
|
||||
|
||||
PURGE _NARG
|
||||
|
||||
DEF _NARG EQU 12
|
||||
REDEF _NARG EQU 34
|
||||
|
||||
DEF _NARG = 56
|
||||
REDEF _NARG = 78
|
||||
|
||||
DEF _NARG EQUS "hello"
|
||||
REDEF _NARG EQUS "world"
|
||||
|
||||
SECTION "test", ROM0
|
||||
_NARG:
|
||||
17
test/asm/builtin-reserved.err
Normal file
17
test/asm/builtin-reserved.err
Normal file
@@ -0,0 +1,17 @@
|
||||
error: builtin-reserved.asm(3):
|
||||
'_NARG' not defined
|
||||
error: builtin-reserved.asm(5):
|
||||
'_NARG' is reserved for a built-in symbol
|
||||
error: builtin-reserved.asm(6):
|
||||
'_NARG' is reserved for a built-in symbol
|
||||
error: builtin-reserved.asm(8):
|
||||
'_NARG' is reserved for a built-in symbol
|
||||
error: builtin-reserved.asm(9):
|
||||
'_NARG' is reserved for a built-in symbol
|
||||
error: builtin-reserved.asm(11):
|
||||
'_NARG' is reserved for a built-in symbol
|
||||
error: builtin-reserved.asm(12):
|
||||
'_NARG' is reserved for a built-in symbol
|
||||
error: builtin-reserved.asm(15):
|
||||
'_NARG' is reserved for a built-in symbol
|
||||
error: Assembly aborted (8 errors)!
|
||||
Reference in New Issue
Block a user