mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Fix failing assertion with backslash at EOF in macro arguments (#1634)
`Expansion::advance()` can increase its offset beyond the size, so I don't think this assumption was valid in the first place; `BufferedContent::advance()` should be able to as well.
This commit is contained in:
11
test/asm/string-literal-macro-arg.asm
Normal file
11
test/asm/string-literal-macro-arg.asm
Normal file
@@ -0,0 +1,11 @@
|
||||
MACRO mac
|
||||
println "\1"
|
||||
println \1
|
||||
ENDM
|
||||
mac "hello \\\"\t\r\0\n\ ; comment
|
||||
\wor\
|
||||
ld"
|
||||
mac """goodbye
|
||||
cruel\ ; comment
|
||||
\nworld"""
|
||||
mac "\
|
||||
Reference in New Issue
Block a user