polishing the scribe -c++ case

This commit is contained in:
Sam Gateau 2014-12-23 18:25:35 -08:00
parent 42157161e0
commit 7ea9f92492

View file

@ -192,21 +192,8 @@ 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";
targetStringStream << "const char " << targetName << "[] = R\"XXXX(" << destStringStream.str() << ")XXXX\";";
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 {