Macro processor

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Macro processor

Postby gbel » Mon Jun 14, 2010 2:16 pm

Hi,

One thing that I love about the C preprocessor is the ability to pass 'define' statements at the command line. '-Dmydefine' in the command line is equivalent to '#define mydefine' in the file.

Is there an equivalent in Dynare (or are there plans to)?

Thanks,
Gilles
gbel
 
Posts: 33
Joined: Thu Sep 04, 2008 8:34 pm
Location: Québec

Re: Macro processor

Postby SébastienVillemot » Tue Jun 22, 2010 10:49 am

This feature is not available at the moment, and we have no immediate plans for that.

You can probably emulate it by writing some MATLAB code which dynamically creates a configuration file (containing only the defines) and to include that config file from your main MOD file.
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 7 guests