mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-28 23:17:57 +00:00
Merge
This commit is contained in:
commit
ea76abdaee
10 changed files with 167 additions and 21 deletions
|
@ -630,7 +630,7 @@ std::string escape_cxx_string(const std::string &input)
|
|||
std::string output = "\"";
|
||||
for (auto c : input) {
|
||||
if (::isprint(c)) {
|
||||
if (c == '\\')
|
||||
if (c == '\\' || c == '"')
|
||||
output.push_back('\\');
|
||||
output.push_back(c);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue