From 9f8edf87ddfbf7c57a8885fa7f0ea468a445ac46 Mon Sep 17 00:00:00 2001 From: Houtan Date: Thu, 7 Dec 2017 18:11:00 +0100 Subject: [PATCH] preprocessor: add line number to field in structure that macro variables are saved to. #1564 --- macro/MacroDriver.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macro/MacroDriver.cc b/macro/MacroDriver.cc index 1633b813..bd15152b 100644 --- a/macro/MacroDriver.cc +++ b/macro/MacroDriver.cc @@ -229,6 +229,6 @@ MacroDriver::printvars(const Macro::parser::location_type &l, const bool tostdou for (map::const_iterator it = env.begin(); it != env.end(); it++) - intomfile<< "options_.macrovars." << it->first << " = " << it->second->print() << ";" << endl; + intomfile<< "options_.macrovars_line_" << l.begin.line << "." << it->first << " = " << it->second->print() << ";" << endl; return intomfile.str(); }