Reduced the number of generated #line directives.

This commit is contained in:
Roberto Raggi
2008-12-02 15:33:07 +01:00
parent df7aacd637
commit ceb73b720b
2 changed files with 5 additions and 14 deletions

View File

@@ -69,8 +69,7 @@ const char *MacroExpander::operator () (const char *__first, const char *__last,
{
if (*__first == '\n')
{
__result->append('\n');
__result->append('#');
__result->append("\n# ");
__result->append(QByteArray::number(env.currentLine));
__result->append(' ');
__result->append('"');