From 50a2737e41cd449d6551622b918f64e514c3d2fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Wed, 14 Dec 2022 15:20:50 +0100 Subject: [PATCH] Macro processor: fix tracking of line numbers after @#define, @#include and @#includepath directives Closes: #108 --- src/macro/Directives.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/macro/Directives.cc b/src/macro/Directives.cc index c576249e..8df4642c 100644 --- a/src/macro/Directives.cc +++ b/src/macro/Directives.cc @@ -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 -- GitLab