mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-30 14:57:50 +00:00
Support character escapes in linkerscript strings
This allows linkerscripts to refer to section names even if they contain special characters: '\r' '\n' '\t' '"' '\\'.
This commit is contained in:
3
test/link/linkerscript-escapes-test.link
Normal file
3
test/link/linkerscript-escapes-test.link
Normal file
@@ -0,0 +1,3 @@
|
||||
ROM0
|
||||
"A\"B\tC\rD\nE"
|
||||
"in\{valid"
|
||||
1
test/link/linkerscript-escapes-test.out
Normal file
1
test/link/linkerscript-escapes-test.out
Normal file
@@ -0,0 +1 @@
|
||||
error: ./linkerscript-escapes-test.link(3): Illegal character escape
|
||||
4
test/link/linkerscript-escapes.asm
Normal file
4
test/link/linkerscript-escapes.asm
Normal file
@@ -0,0 +1,4 @@
|
||||
SECTION "A\"B\tC\rD\nE", ROM0
|
||||
DS $1000
|
||||
SECTION "in\{valid", ROM0
|
||||
DS $1000
|
||||
Reference in New Issue
Block a user