shithub: rgbds

ref: 76d88629009d98292890804161ecb7e455f0751f
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

	mac
	mac a,,
	mac ,,z
	mac a,,z
	mac ,a,b,c,
	mac ,,x,,