From e8809480e2e6ad12cf28a0673c647fbd3313d072 Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Thu, 30 Apr 2015 12:35:33 +0200
Subject: [PATCH] preprocessor: add dynare_version field to oo_, M_, and
 options_, #546

---
 ModFile.cc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ModFile.cc b/ModFile.cc
index 847fc7e3..6d9eca0e 100644
--- a/ModFile.cc
+++ b/ModFile.cc
@@ -574,6 +574,9 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all, bool clear_glo
               << "global M_ oo_ options_ ys0_ ex0_ estimation_info" << endl
               << "options_ = [];" << endl
               << "M_.fname = '" << basename << "';" << endl
+              << "M_.dynare_version = '" << PACKAGE_VERSION << "';" << endl
+              << "oo_.dynare_version = '" << PACKAGE_VERSION << "';" << endl
+              << "options_.dynare_version = '" << PACKAGE_VERSION << "';" << endl
               << "%" << endl
               << "% Some global variables initialization" << endl
               << "%" << endl;
-- 
GitLab