shithub: rgbds

ref: fad48326f833b7b282d76d1b79f0dc3b3ecc8d04
dir: /test/asm/macro-arguments.asm/

View raw version
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