mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-24 03:52:08 +00:00
Trim macro arg whitespace after line continuations
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
\1: < 1>
|
||||
\2: <2>
|
||||
|
||||
'mac c,d':
|
||||
\1: < c>
|
||||
'mac c,d':
|
||||
\1: <c>
|
||||
\2: <d>
|
||||
|
||||
'mac 1,2 + 2,3':
|
||||
|
||||
19
test/asm/trimmed-macro-args.asm
Normal file
19
test/asm/trimmed-macro-args.asm
Normal file
@@ -0,0 +1,19 @@
|
||||
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
|
||||
0
test/asm/trimmed-macro-args.err
Normal file
0
test/asm/trimmed-macro-args.err
Normal file
9
test/asm/trimmed-macro-args.out
Normal file
9
test/asm/trimmed-macro-args.out
Normal file
@@ -0,0 +1,9 @@
|
||||
3: "a"
|
||||
2: "b"
|
||||
1: "c"
|
||||
3: "a"
|
||||
2: "b"
|
||||
1: "c"
|
||||
3: "a"
|
||||
2: " b"
|
||||
1: "c"
|
||||
Reference in New Issue
Block a user