mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Don't overwrite symbol when it's not allowed
When a user tried to overwrite a builtin symbol, it would change its type despite the error, making the second try succeed. This is problematic, as the location of a builtin symbol cannot be updated.
This commit is contained in:
2
test/asm/narg-overwrite.asm
Normal file
2
test/asm/narg-overwrite.asm
Normal file
@@ -0,0 +1,2 @@
|
||||
_NARG = 0
|
||||
_NARG = 0
|
||||
5
test/asm/narg-overwrite.err
Normal file
5
test/asm/narg-overwrite.err
Normal file
@@ -0,0 +1,5 @@
|
||||
ERROR: narg-overwrite.asm(1):
|
||||
'_NARG' already defined as constant at <builtin>
|
||||
ERROR: narg-overwrite.asm(2):
|
||||
'_NARG' already defined as constant at <builtin>
|
||||
error: Assembly aborted (2 errors)!
|
||||
0
test/asm/narg-overwrite.out
Normal file
0
test/asm/narg-overwrite.out
Normal file
Reference in New Issue
Block a user