mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Store the nested expansions starting from the deepest one (#829)
This shortens the lexer by 100 lines and simplifies access to expansion contents, since it usually needs the deepest one, not the top-level one. Fixes #813
This commit is contained in:
6
test/asm/nested-expansions.asm
Normal file
6
test/asm/nested-expansions.asm
Normal file
@@ -0,0 +1,6 @@
|
||||
def foo equs "bar"
|
||||
def bar equs "qux"
|
||||
MACRO test
|
||||
\1
|
||||
ENDM
|
||||
test foo 0
|
||||
3
test/asm/nested-expansions.err
Normal file
3
test/asm/nested-expansions.err
Normal file
@@ -0,0 +1,3 @@
|
||||
ERROR: nested-expansions.asm(6) -> nested-expansions.asm::test(4):
|
||||
Macro "qux" not defined
|
||||
error: Assembly aborted (1 error)!
|
||||
0
test/asm/nested-expansions.out
Normal file
0
test/asm/nested-expansions.out
Normal file
Reference in New Issue
Block a user