use prefix notation `R"()"` for quote in quotes

issue#70
Houtan Bastani 2020-01-16 16:21:19 +01:00
parent 6d1c2ca82b
commit e9049aa81f
No known key found for this signature in database
GPG Key ID: 000094FB955BE169
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ Driver::parse(const string &file_arg, const string &basename_arg, istream &modfi
// If the input is an array. Issue #1578
command_line_defines_with_endl << "@#define " << var << " = " << val << endl;
else
command_line_defines_with_endl << "@#define " << var << R"( = ")" << val << '"' << endl;
command_line_defines_with_endl << "@#define " << var << R"( = ")" << val << R"(")" << endl;
}
Driver m(env, true);
istream is(command_line_defines_with_endl.rdbuf());