Skip to content

#393 Add version macro to each module

Metadata

Property Value
Reported by Andreas Dedner (A.S.Dedner@warwick.ac.uk)
Reported at May 16, 2008 14:56
Type Feature Request
Version Git (pre2.4) [autotools]
Operating System Unspecified / All
Last edited by Oliver Sander (oliver.sander@tu-dresden.de)
Last edited at Oct 7, 2008 21:13
Closed by Oliver Sander (oliver.sander@tu-dresden.de)
Closed at Oct 7, 2008 21:13
Closed in version Unknown
Resolution Implemented
Comment

Description

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 DUNE__VERSION_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.