shithub: rgbds

ref: 71e22f3bfe52a4e33b6a77e860dd6f80f4bb7e53
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