Files
rgbds/test/asm/macro-arguments.asm
2021-02-28 10:38:49 -08:00

17 lines
232 B
NASM

mac: MACRO
println "'mac \#':"
for i, _NARG
println strfmt("\\%d: <\1>", i+1)
shift
endr
println
ENDM
mac /* block
...comment */ ; comment
mac /*a*/ 1 , 2 /*b*/
mac \
c, d
mac 1, 2 + /* another ;
; comment */ 2, 3