mirror of
https://github.com/gbdev/rgbds.git
synced 2025-12-01 15:27:48 +00:00
Only restore parent context's \@ value if it had one defined (#1366)
This way, if a child context initializes `\@`, the parent won't reset it. And if the child context did not initialize `\@`, then resetting it would be redundant.
This commit is contained in:
21
test/asm/unique-id-nested.out
Normal file
21
test/asm/unique-id-nested.out
Normal file
@@ -0,0 +1,21 @@
|
||||
Begin REPT
|
||||
Begin MACRO
|
||||
Within nested MACRO: _u1
|
||||
Within MACRO: _u2
|
||||
Within REPT: _u3
|
||||
Begin REPT
|
||||
Begin MACRO
|
||||
Within nested MACRO: _u4
|
||||
Within MACRO: _u5
|
||||
Within REPT: _u6
|
||||
|
||||
Begin REPT: _u7
|
||||
Begin MACRO: _u8
|
||||
Within nested MACRO: _u9
|
||||
Within MACRO: _u8
|
||||
Within REPT: _u7
|
||||
Begin REPT: _u10
|
||||
Begin MACRO: _u11
|
||||
Within nested MACRO: _u12
|
||||
Within MACRO: _u11
|
||||
Within REPT: _u10
|
||||
Reference in New Issue
Block a user