Files
rgbds/test/asm/unique-id-include.asm
Sylvie f792580816 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.
2024-03-21 19:53:49 -04:00

28 lines
430 B
NASM

REPT 2
println "Within REPT"
INCLUDE "unique-id-include.inc"
println "Outside INCLUDE: \@"
ENDR
MACRO m1
println "Within MACRO"
INCLUDE "unique-id-include.inc"
println "Outside INCLUDE: \@"
ENDM
m1
println
REPT 2
println "Within REPT: \@"
INCLUDE "unique-id-include.inc"
println "Outside INCLUDE: \@"
ENDR
MACRO m2
println "Within MACRO: \@"
INCLUDE "unique-id-include.inc"
println "Outside INCLUDE: \@"
ENDM
m2