From 81de5a0a1c86c54c266676ea0b45bd42c35acfe3 Mon Sep 17 00:00:00 2001 From: sceptillion <33798691+sceptillion@users.noreply.github.com> Date: Sat, 25 Nov 2017 22:08:30 -0800 Subject: fix issue with line numbers in errors when using preproc with C --- tools/preproc/c_file.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/preproc/c_file.cpp') diff --git a/tools/preproc/c_file.cpp b/tools/preproc/c_file.cpp index 5bfdee086..24b3453e8 100644 --- a/tools/preproc/c_file.cpp +++ b/tools/preproc/c_file.cpp @@ -139,6 +139,7 @@ bool CFile::ConsumeNewline() { m_pos += 2; m_lineNum++; + std::putchar('\n'); return true; } @@ -146,6 +147,7 @@ bool CFile::ConsumeNewline() { m_pos++; m_lineNum++; + std::putchar('\n'); return true; } -- cgit v1.2.3