mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Update a symbol's filename and line when defined
Currently, all symbols are assigned a filename and line when they're first encountered and added to the internal hash table. This is often not expected and leads to erroneous error messages.
This commit is contained in:
7
test/asm/label-redefinition.asm
Normal file
7
test/asm/label-redefinition.asm
Normal file
@@ -0,0 +1,7 @@
|
||||
SECTION "sec", ROM0
|
||||
dw Sym
|
||||
m: MACRO
|
||||
Sym::
|
||||
ENDM
|
||||
m
|
||||
Sym::
|
||||
3
test/asm/label-redefinition.out
Normal file
3
test/asm/label-redefinition.out
Normal file
@@ -0,0 +1,3 @@
|
||||
ERROR: label-redefinition.asm(7):
|
||||
'Sym' already defined in m(6)
|
||||
error: Assembly aborted in pass 1 (1 errors)!
|
||||
Reference in New Issue
Block a user