mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-26 04:52:08 +00:00
If a line ended with a string's closing quote, or a newline escape, then
skipping over that line via IF/ELIF/ELSE would fail to count that line,
offsetting the rest of the file.
I have no idea why but for some reason 9829be1 changed *specifically*
`if_skip_to_else` to have incorrect behavior on string endings. The incorrect
behavior on newline escapes seems to have been here since the beginning.
Also added a test to check for both of those behaviors in both functions.
Honestly, it baffles me that nobody ever noticed. I didn't until I started
working on #395.
45 lines
701 B
Plaintext
45 lines
701 B
Plaintext
warning: multiple-charmaps.asm(75):
|
|
Using 'charmap' within a section when the current charmap is 'main' is deprecated
|
|
ERROR: multiple-charmaps.asm(100) -> new_(6):
|
|
Charmap 'map1' already exists
|
|
ERROR: multiple-charmaps.asm(102) -> set_(2):
|
|
Charmap 'map5' doesn't exist
|
|
ERROR: multiple-charmaps.asm(104) -> pop_(2):
|
|
No entries in the charmap stack
|
|
main charmap
|
|
$0
|
|
newcharmap map1
|
|
$6162
|
|
newcharmap map2, main
|
|
$0
|
|
setcharmap map1
|
|
$6162
|
|
newcharmap map3
|
|
$1
|
|
newcharmap map4, map3
|
|
$1
|
|
$2
|
|
setcharmap map3
|
|
$1
|
|
$6364
|
|
setcharmap main
|
|
$0
|
|
override main charmap
|
|
$6162
|
|
$3
|
|
setcharmap map1
|
|
pushc
|
|
setcharmap map2
|
|
pushc
|
|
setcharmap map3
|
|
$1
|
|
$6364
|
|
$6566
|
|
popc
|
|
$0
|
|
popc
|
|
$6162
|
|
newcharmap map1
|
|
setcharmap map5
|
|
popc
|