summaryrefslogtreecommitdiff
path: root/tools/preproc/c_file.cpp
diff options
context:
space:
mode:
authorsceptillion <33798691+sceptillion@users.noreply.github.com>2017-11-25 22:08:30 -0800
committersceptillion <33798691+sceptillion@users.noreply.github.com>2017-11-25 22:08:30 -0800
commit81de5a0a1c86c54c266676ea0b45bd42c35acfe3 (patch)
tree69f6b9be6e6f8f9a0b049dd34d97de96d68f388d /tools/preproc/c_file.cpp
parent20c5936f0c9fd15d34fce0409e8835282ea2fcaf (diff)
fix issue with line numbers in errors when using preproc with C
Diffstat (limited to 'tools/preproc/c_file.cpp')
-rw-r--r--tools/preproc/c_file.cpp2
1 files changed, 2 insertions, 0 deletions
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;
}