mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 22:22:17 +00:00
Comment about why stringify is so short
This commit is contained in:
parent
edbe8f54cb
commit
441a224435
1 changed files with 4 additions and 0 deletions
4
ftepp.c
4
ftepp.c
|
@ -447,6 +447,10 @@ static void ftepp_stringify_token(ftepp_t *ftepp, pptoken *token)
|
|||
case TOKEN_STRINGCONST:
|
||||
ch = token->value;
|
||||
while (*ch) {
|
||||
/* in preprocessor mode strings already are string,
|
||||
* so we don't get actual newline bytes here.
|
||||
* Still need to escape backslashes and quotes.
|
||||
*/
|
||||
switch (*ch) {
|
||||
case '\\': ftepp_out(ftepp, "\\\\", false); break;
|
||||
case '"': ftepp_out(ftepp, "\\\"", false); break;
|
||||
|
|
Loading…
Reference in a new issue