mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Merge pull request #437 from rednex/locals
Prevent local symbols that are not labels
This commit is contained in:
@@ -40,6 +40,6 @@ ENDM
|
||||
test_char _
|
||||
test_char @
|
||||
test_char #
|
||||
test_char .
|
||||
|
||||
test_char .
|
||||
test_char :
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
ERROR: label-macro-arg.asm(45) -> label-macro-arg.asm::test_char(31):
|
||||
Label "sizeof_" created outside of a SECTION
|
||||
ERROR: label-macro-arg.asm(44) -> label-macro-arg.asm::test_char(31):
|
||||
Local label in main scope
|
||||
while expanding symbol "VAR_DEF"
|
||||
ERROR: label-macro-arg.asm(45) -> label-macro-arg.asm::test_char(31):
|
||||
Macro 'something' not defined
|
||||
ERROR: label-macro-arg.asm(44) -> label-macro-arg.asm::test_char(31):
|
||||
syntax error
|
||||
while expanding symbol "VAR_DEF"
|
||||
error: Assembly aborted (2 errors)!
|
||||
|
||||
@@ -5,4 +5,3 @@ $8
|
||||
sizeof__something equals $1
|
||||
sizeof_@something equals $1
|
||||
sizeof_#something equals $1
|
||||
sizeof_.something equals $1
|
||||
|
||||
Reference in New Issue
Block a user