mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-06 12:15:39 +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:
1 parent
4b40d63dfd
commit
d07ba6971b
3 files changed
+29
-8
No files matched your search
@@ -0,0 +1,7 @@
|
||||
SECTION "sec", ROM0
|
||||
dw Sym
|
||||
m: MACRO
|
||||
Sym::
|
||||
ENDM
|
||||
m
|
||||
Sym::
|
||||
@@ -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