From 7922ecb6771db26937cc6587874ada68555821c0 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 (cherry picked from commit 50a2737e41cd449d6551622b918f64e514c3d2fc) --- 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 9d9f94c6..0aa2d437 100644 --- a/src/macro/Directives.cc +++ b/src/macro/Directives.cc @@ -86,7 +86,7 @@ Include::interpret(ostream &output, Environment &env, vector<filesystem::path> & { error(StackTrace("@#include", e.what(), location)); } - printLineInfo(output); + printEndLineInfo(output); } void @@ -127,6 +127,7 @@ IncludePath::interpret(ostream &output, Environment &env, vector<filesystem::pat { error(StackTrace("@#includepath", e.what(), location)); } + printEndLineInfo(output); } void @@ -150,6 +151,7 @@ Define::interpret(ostream &output, Environment &env, vector<filesystem::path> &p { error(StackTrace("@#define", e.what(), location)); } + printEndLineInfo(output); } void -- GitLab