diff --git a/macro/MacroDriver.cc b/macro/MacroDriver.cc
index 1633b8132e1ee91a2636bf1c61cbf8a6563e9857..bd15152b366c5830305a6035d95308bb256940ae 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<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();
 }