Preserve \@ through INCLUDE

Fixes #1112
This commit is contained in:
Rangi
2022-12-11 11:57:45 -05:00
committed by Eldred Habert
parent 69a573923f
commit 01f1703dfb
5 changed files with 61 additions and 2 deletions

View File

@@ -0,0 +1,24 @@
MACRO mac
println "outer mac: \@ (\#)"
INCLUDE "include-unique-id.inc"
ENDM
DEF state = 1
mac hello, world
mac goodbye, world
REPT 2
DEF state = 2
println "outer rept before: \@"
INCLUDE "include-unique-id.inc"
FOR n, 3
DEF state = 3
println "outer for: \@ ({n})"
INCLUDE "include-unique-id.inc"
ENDR
DEF state = 4
println "outer rept after: \@"
INCLUDE "include-unique-id.inc"
ENDR