mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 08:15:18 -04:00
cppparser: fix escaping of string literals in preprocessor mode
[skip ci]
This commit is contained in:
parent
ba51b2cdca
commit
bddb7cb262
@ -736,7 +736,11 @@ output_code(std::ostream &out) const {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case '\'':
|
case '\'':
|
||||||
out << "\\\'";
|
out << (_token == CHAR_TOK ? "\\\'" : "'");
|
||||||
|
break;
|
||||||
|
|
||||||
|
case '"':
|
||||||
|
out << (_token == CHAR_TOK ? "\"" : "\\\"");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case '\\':
|
case '\\':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user