mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 07:48:37 -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;
|
||||
|
||||
case '\'':
|
||||
out << "\\\'";
|
||||
out << (_token == CHAR_TOK ? "\\\'" : "'");
|
||||
break;
|
||||
|
||||
case '"':
|
||||
out << (_token == CHAR_TOK ? "\"" : "\\\"");
|
||||
break;
|
||||
|
||||
case '\\':
|
||||
|
Loading…
x
Reference in New Issue
Block a user