Macro arguments within a string literal are read into the string, not expanded

Fixes #643
This commit is contained in:
Rangi
2020-12-14 09:57:45 -05:00
committed by Eldred Habert
parent f31deb5010
commit 1d9cc01ae1
4 changed files with 113 additions and 21 deletions

View File

@@ -0,0 +1,19 @@
print: MACRO
PRINTT "\1"
PRINTT "\n"
ENDM
print John "Danger" Smith
print \\A\nB
print C\
D
print E\!F ; illegal character escape
iprint: MACRO
PRINTT "{\1}"
PRINTT "\n"
ENDM
s EQUS "hello"
iprint s