Macro processor

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

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.