mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-25 20:42:07 +00:00
Add string expansion reporting
And fix line counting with expansion-made newlines. This has the same bug as the old lexer (equs-newline's output does not print the second warning as being part of the expansion). Additionally, we regress equs-recursion, as we are no longer able to catch this specific EQUS recursion. Simply enough, the new expansion begins **after** the old one ends! I have found no way to handle that.
This commit is contained in:
4
test/asm/equs-newline.asm
Normal file
4
test/asm/equs-newline.asm
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
ACT equs "WARN \"First\"\nWARN \"Second\""
|
||||
ACT
|
||||
WARN "Third"
|
||||
8
test/asm/equs-newline.err
Normal file
8
test/asm/equs-newline.err
Normal file
@@ -0,0 +1,8 @@
|
||||
warning: test/asm/equs-newline.asm(2): [-Wuser]
|
||||
First
|
||||
while expanding symbol "ACT"
|
||||
warning: test/asm/equs-newline.asm(3): [-Wuser]
|
||||
Second
|
||||
while expanding symbol "ACT"
|
||||
warning: test/asm/equs-newline.asm(4): [-Wuser]
|
||||
Third
|
||||
0
test/asm/equs-newline.out
Normal file
0
test/asm/equs-newline.out
Normal file
2
test/asm/equs-purge.asm
Normal file
2
test/asm/equs-purge.asm
Normal file
@@ -0,0 +1,2 @@
|
||||
BYE equs "PURGE BYE\nWARN \"Crash?\"\n \n"
|
||||
BYE
|
||||
3
test/asm/equs-purge.err
Normal file
3
test/asm/equs-purge.err
Normal file
@@ -0,0 +1,3 @@
|
||||
warning: test/asm/equs-purge.asm(0): [-Wuser]
|
||||
Crash?
|
||||
while expanding symbol "BYE"
|
||||
0
test/asm/equs-purge.out
Normal file
0
test/asm/equs-purge.out
Normal file
Reference in New Issue
Block a user