Files
rgbds/test/asm/macro-arg-in-string.asm
2022-08-28 15:22:21 -04:00

28 lines
332 B
NASM

MACRO print1
if _NARG == 2
assert !STRCMP("\1", \2)
endc
PRINTLN "\1"
ENDM
print1 John "Danger" Smith
print1 \\\\A\\nB\n, "\\\\A\\nB\n"
print1 C\
D
print1 E\!F ; illegal character escape
MACRO iprint
PRINTLN "{\1}"
ENDM
s EQUS "hello"
iprint s
MACRO symprint
PRINTLN {\1}
ENDM
hello EQUS "\"goodbye\""
symprint s