summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCameron Hall <camthesaxman@users.noreply.github.com>2017-11-27 13:58:30 -0600
committerGitHub <noreply@github.com>2017-11-27 13:58:30 -0600
commit66f2ac4ba38cb32eb210545536a487969b593d10 (patch)
tree24f720258b2a902d95ce444f2542fddaa86f3a95
parente6500d12a21e9833e08ad25cc6a76b075cff42dd (diff)
parent81de5a0a1c86c54c266676ea0b45bd42c35acfe3 (diff)
Merge pull request #476 from sceptillion/fix_preproc_c
fix issue with line numbers in errors when using preproc with C
-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;
}