Skip to content

Commit ffd3bdc

Browse files
committed
Escape ? in C string literals
Fixes #714
1 parent cb343ca commit ffd3bdc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎cli/src/generate/render.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1509,6 +1509,7 @@ impl Generator {
15091509
for c in name.chars() {
15101510
match c {
15111511
'\"' => result += "\\\"",
1512+
'?' => result += "\\?",
15121513
'\\' => result += "\\\\",
15131514
'\u{000c}' => result += "\\f",
15141515
'\n' => result += "\\n",

0 commit comments

Comments
 (0)