mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-22 11:12:07 +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:
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)!
|
||||
Reference in New Issue
Block a user