Skip to content
Snippets Groups Projects
Commit 9f8edf87 authored by Houtan's avatar Houtan
Browse files

preprocessor: add line number to field in structure that macro variables are saved to. #1564
parent f57fb54a
Branches
Tags
No related merge requests found
......@@ -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();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment