shithub: rgbds

ref: 7311fc9ef81bcab931b9ca768f018a627f281933
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