Prevent local symbols that are not labels

Fixes errors brought up in #423
This commit is contained in:
ISSOtm
2020-02-19 00:20:58 +01:00
parent cf2001de5f
commit 76efd26da0
5 changed files with 46 additions and 20 deletions

View File

@@ -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)!