Page 1 of 1

Macro processor

PostPosted: Mon Jun 14, 2010 2:16 pm
by gbel
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

Re: Macro processor

PostPosted: Tue Jun 22, 2010 10:49 am
by SébastienVillemot
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.