Files
rgbds/test/asm/purge-deferred.asm
T
QuinnandRangi42 944c5f0cd0 Implement order-independent purge (#1173)
Each symbol passed to purge is collected in a list before mass removal.
Fixes the issue described in gbdev/rgbds issue #1152.

---------

Co-authored-by: Rangi42 <[email protected]>
2023-10-25 22:34:56 +02:00

12 lines
239 B
NASM

DEF prefix EQUS "cool"
DEF {prefix}banana EQU 1
ASSERT DEF(prefix)
ASSERT DEF(coolbanana)
; purging `prefix` should not prevent expanding it to purge `coolbanana`
PURGE prefix, {prefix}banana
ASSERT !DEF(prefix)
ASSERT !DEF(coolbanana)