Skip to content
Snippets Groups Projects
Verified Commit 50a2737e 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
parent 8734bc5c
No related branches found
No related tags found
No related merge requests found
...@@ -88,7 +88,7 @@ Include::interpret(ostream &output, Environment &env, vector<filesystem::path> & ...@@ -88,7 +88,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
...@@ -129,6 +129,7 @@ IncludePath::interpret([[maybe_unused]] ostream &output, Environment &env, vecto ...@@ -129,6 +129,7 @@ IncludePath::interpret([[maybe_unused]] ostream &output, Environment &env, vecto
{ {
error(StackTrace("@#includepath", e.what(), location)); error(StackTrace("@#includepath", e.what(), location));
} }
printEndLineInfo(output);
} }
void void
...@@ -152,6 +153,7 @@ Define::interpret([[maybe_unused]] ostream &output, Environment &env, [[maybe_un ...@@ -152,6 +153,7 @@ Define::interpret([[maybe_unused]] ostream &output, Environment &env, [[maybe_un
{ {
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