Commit 6aa6d9d3 by Lei Zhang

Remove uncessary line break.

We output empty lines before processing non-whitespace tokens, not after done processing them.
parent 46ea5396
...@@ -660,14 +660,12 @@ struct DoPreprocessing { ...@@ -660,14 +660,12 @@ struct DoPreprocessing {
parseContext.setVersionCallback( parseContext.setVersionCallback(
[&adjustLine, &lastLine, &outputStream](int line, int version, const char* str) { [&adjustLine, &outputStream](int line, int version, const char* str) {
adjustLine(line); adjustLine(line);
outputStream << "#version " << version; outputStream << "#version " << version;
if (str) { if (str) {
outputStream << " " << str; outputStream << " " << str;
} }
outputStream << std::endl;
++lastLine;
}); });
parseContext.setPragmaCallback([&adjustLine, &outputStream]( parseContext.setPragmaCallback([&adjustLine, &outputStream](
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment