Skip to content
Snippets Groups Projects
Verified Commit 7922ecb6 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Macro processor: fix tracking of line numbers after @#define, @#include and...

Macro processor: fix tracking of line numbers after @#define, @#include and @#includepath directives

Closes: #108
(cherry picked from commit 50a2737e)
parent 17cfb42a
No related branches found
No related tags found
No related merge requests found
...@@ -86,7 +86,7 @@ Include::interpret(ostream &output, Environment &env, vector<filesystem::path> & ...@@ -86,7 +86,7 @@ Include::interpret(ostream &output, Environment &env, vector<filesystem::path> &
{ {
error(StackTrace("@#include", e.what(), location)); error(StackTrace("@#include", e.what(), location));
} }
printLineInfo(output); printEndLineInfo(output);
} }
void void
...@@ -127,6 +127,7 @@ IncludePath::interpret(ostream &output, Environment &env, vector<filesystem::pat ...@@ -127,6 +127,7 @@ IncludePath::interpret(ostream &output, Environment &env, vector<filesystem::pat
{ {
error(StackTrace("@#includepath", e.what(), location)); error(StackTrace("@#includepath", e.what(), location));
} }
printEndLineInfo(output);
} }
void void
...@@ -150,6 +151,7 @@ Define::interpret(ostream &output, Environment &env, vector<filesystem::path> &p ...@@ -150,6 +151,7 @@ Define::interpret(ostream &output, Environment &env, vector<filesystem::path> &p
{ {
error(StackTrace("@#define", e.what(), location)); error(StackTrace("@#define", e.what(), location));
} }
printEndLineInfo(output);
} }
void void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment