preprocessor: add line number to field in structure that macro variables are saved to. #1564

issue#70
Houtan 2017-12-07 18:11:00 +01:00
parent f57fb54a45
commit 9f8edf87dd
1 changed files with 1 additions and 1 deletions

View File

@ -229,6 +229,6 @@ MacroDriver::printvars(const Macro::parser::location_type &l, const bool tostdou
for (map<string, const MacroValue *>::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();
}