[Dune] [#393] Add version macro to each module

Dune dune at dune-project.org
Fri May 16 16:56:28 CEST 2008


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Andreas Dedner (dedner) 

Attached to Project - Dune
Summary - Add version macro to each module
Task Type - Feature Request
Category - Dune Modules
Status - New
Assigned To - 
Operating System - Unspecified / All
Severity - Low
Priority - Normal
Reported Version - SVN
Due in Version - Undecided
Due Date - Undecided
Details - 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_<module>_VERSION_MAJOR 1
#define DUNE_<module>_VERSION_MINOR 1
#define DUNE_<module>_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.

More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=393

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.




More information about the Dune mailing list