#393 Add version macro to each module
|Reported by||Andreas Dedner (A.S.Dedner@warwick.ac.uk)|
|Reported at||May 16, 2008 14:56|
|Version||Git (pre2.4) [autotools]|
|Operating System||Unspecified / All|
|Last edited by||Oliver Sander (firstname.lastname@example.org)|
|Last edited at||Oct 7, 2008 21:13|
|Closed by||Oliver Sander (email@example.com)|
|Closed at||Oct 7, 2008 21:13|
|Closed in version||Unknown|
To maintain compatibility with different releases of the
core dune modules it would be nice to be able to have access
to the version of a module through some macro. The version
string in the config.h can not (to our knowledge) be used
in preprocessor code.
An example of this problem is code using the new grid views and older code using the methods directly on the grid.
Suggestion is to use three defines of the form:
#define DUNE_VERSION_MAJOR 1 #define DUNEVERSION_MINOR 1 #define DUNE_VERSION_REVISION 0
A possibility would be to have a file version.hh in each module with the information. For the time being this could be added to the trunk if generating it during configure is to much trouble.