fix(library/compiler/emit_cpp): bug at quote_string
This commit is contained in:
parent
4fa06e38b2
commit
42ee42b732
1 changed files with 2 additions and 0 deletions
|
|
@ -255,6 +255,8 @@ static void emit_quoted_string(std::ostream & out, std::string const & s) {
|
|||
out << "\\t";
|
||||
else if (c == '\\')
|
||||
out << "\\\\";
|
||||
else if (c == '\"')
|
||||
out << "\\\"";
|
||||
else if (c <= 31 || c >= 0x7f) {
|
||||
out << "\\x"; emit_hexdigit(out, c / 16); emit_hexdigit(out, c % 16);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue