shithub: rgbds

ref: c7a92d3104807f2831b706642adbd3492e440ac3
dir: /test/asm/trimmed-macro-args.asm/

View raw version
MACRO print_all
	REPT _NARG
		PRINTLN "{d:_NARG}: \"\1\""
		SHIFT
	ENDR
ENDM

	print_all a, \
	          b \
	        , c

DEF EMPTY equs ""
	print_all a, \
	  {EMPTY} b \
	 {EMPTY}, c

	print_all a, \
	  /* . */ b \
	 /* . */, c