forked from gbdev/rgbds
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
append_yylval_tzString should always evaluate its argument
Fixes gbdev#762
- Loading branch information
Showing
4 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
println """This paragraph has exactly 257--that's two hundred and | ||
fifty-seven--characters altogether. That's just enough for its last | ||
two characters to be truncated by rgbasm's lexer, since it can't | ||
handle more than 255-character strings. The final two won't print: !?""" | ||
|
||
mac: MACRO | ||
println "\1" ; x1 | ||
println "\1\1\1\1\1\1" ; x6 | ||
ENDM | ||
|
||
mac Hello! ; 6x6 = 36 | ||
mac This sentence spans forty-three characters. ; 43x6 = 258 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
warning: long-string-constant.asm(5): [-Wlong-string] | ||
String constant too long | ||
warning: long-string-constant.asm(13) -> long-string-constant.asm::mac(9): [-Wlong-string] | ||
String constant too long |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
This paragraph has exactly 257--that's two hundred and | ||
fifty-seven--characters altogether. That's just enough for its last | ||
two characters to be truncated by rgbasm's lexer, since it can't | ||
handle more than 255-character strings. The final two won't print: | ||
Hello! | ||
Hello!Hello!Hello!Hello!Hello!Hello! | ||
This sentence spans forty-three characters. | ||
This sentence spans forty-three characters.This sentence spans forty-three characters.This sentence spans forty-three characters.This sentence spans forty-three characters.This sentence spans forty-three characters.This sentence spans forty-three characte |