mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-24 12:02:08 +00:00
16
test/asm/macro-arguments.asm
Normal file
16
test/asm/macro-arguments.asm
Normal file
@@ -0,0 +1,16 @@
|
||||
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
|
||||
Reference in New Issue
Block a user