fix the c++ header generation for mac though the brand new raw string format of c++11

This commit is contained in:
dev 2014-12-23 18:19:25 -08:00
parent 641768773b
commit 42157161e0
2 changed files with 11 additions and 5 deletions

View file

@ -192,16 +192,22 @@ int main (int argc, char** argv) {
targetStringStream << "#ifndef scribe_" << targetName << "_h" << std::endl;
targetStringStream << "#define scribe_" << targetName << "_h" << std::endl << std::endl;
targetStringStream << "const char " << targetName << "[] = R\"XXX(" << destStringStream.str() << ")XXX\";";
/*
targetStringStream << "const char " << targetName << "[] = {\n";
std::stringstream destStringStreamAgain(destStringStream.str());
while (!destStringStreamAgain.eof()) {
std::string line;
std::getline(destStringStreamAgain, line);
if (line.find_first_of('/t') )
targetStringStream << "\"" << line << "\\n\"" << std::endl;
}
targetStringStream << "};" << std::endl << std::endl;
*/
targetStringStream << std::endl << std::endl;
targetStringStream << "#endif" << std::endl;
} else {
targetStringStream << destStringStream.str();