mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 02:02:06 +00:00
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.
28 lines
430 B
NASM
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
|