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

Closes: #108
master
Sébastien Villemot 2022-12-14 15:20:50 +01:00
parent 8734bc5ca6
commit 50a2737e41
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 3 additions and 1 deletions

View File

@ -88,7 +88,7 @@ Include::interpret(ostream &output, Environment &env, vector<filesystem::path> &
{
error(StackTrace("@#include", e.what(), location));
}
printLineInfo(output);
printEndLineInfo(output);
}
void
@ -129,6 +129,7 @@ IncludePath::interpret([[maybe_unused]] ostream &output, Environment &env, vecto
{
error(StackTrace("@#includepath", e.what(), location));
}
printEndLineInfo(output);
}
void
@ -152,6 +153,7 @@ Define::interpret([[maybe_unused]] ostream &output, Environment &env, [[maybe_un
{
error(StackTrace("@#define", e.what(), location));
}
printEndLineInfo(output);
}
void