mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-25 04:22:07 +00:00
Fix nested expansions being incorrectly handled
The biggest problem was simply that the length of children expansions was not accounted for when skipping over the parent... this took a lot of arduous debugging, but it finally works!
This commit is contained in:
4
test/asm/equs-nest.asm
Normal file
4
test/asm/equs-nest.asm
Normal file
@@ -0,0 +1,4 @@
|
||||
X1 equs "Y1 equs \"\\\"Success!\\\\n\\\"\""
|
||||
Y1 equs "Z1"
|
||||
X1
|
||||
PRINTT Z1
|
||||
0
test/asm/equs-nest.err
Normal file
0
test/asm/equs-nest.err
Normal file
0
test/asm/equs-nest.out
Normal file
0
test/asm/equs-nest.out
Normal file
@@ -1,2 +1,6 @@
|
||||
recurse EQUS "recurse"
|
||||
recurse
|
||||
recurse EQUS "recurse "
|
||||
recurse
|
||||
|
||||
; FIXME: also handle the following:
|
||||
; recurse EQUS "recurse"
|
||||
; recurse
|
||||
|
||||
Reference in New Issue
Block a user