mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Fix expansions that start from the end of another expansion (#839)
Do not free an expansion until its offset is *past* its size. This means potentially freeing a nested stack of expansions all at once. Fixes #696
This commit is contained in:
@@ -16,12 +16,8 @@ SECTION "calls", ROM0[0]
|
||||
|
||||
|
||||
defRST: MACRO
|
||||
; FIXME: This is required, otherwise the lexer does not paste the two tokens
|
||||
ADDR equs "$\1"
|
||||
SECTION "rst\1", ROM0[ADDR]
|
||||
|
||||
rst\1:
|
||||
PURGE ADDR
|
||||
SECTION "rst\1", ROM0[$\1]
|
||||
rst\1:
|
||||
ENDM
|
||||
defRST 00
|
||||
defRST 08
|
||||
|
||||
Reference in New Issue
Block a user