shithub: rgbds

ref: 4e712807d7a2add9f93a265b25638e6f1ca32ff3
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