preprocessor: add line number to field in structure that macro variables are saved to. #1564
parent
f57fb54a45
commit
9f8edf87dd
|
@ -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();
|
for (map<string, const MacroValue *>::const_iterator it = env.begin();
|
||||||
it != env.end(); it++)
|
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();
|
return intomfile.str();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue