shithub: rgbds

ref: d243e5039077c44cb9c813e4e63166b36932259c
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