Skip to content
Snippets Groups Projects
Commit 73fa3c67 authored by Martin Nolte's avatar Martin Nolte
Browse files

improved version of DUNE_VERSION_ID macro

[[Imported from SVN: r5315]]
parent 6675acf1
No related branches found
No related tags found
No related merge requests found
......@@ -23,11 +23,10 @@
|| ((DUNE_VERSION_JOIN(module,MAJOR) == major) && (DUNE_VERSION_JOIN(module,MINOR) == minor) \
&& (DUNE_VERSION_JOIN(module,REVISION) >= revision)))
#define DUNE_VERSION_ID(module) \
(unsigned int( \
(DUNE_VERSION_JOIN(module,MAJOR) << 24) + \
(DUNE_VERSION_JOIN(module,MINOR) << 16) + \
(DUNE_VERSION_JOIN(module,REVISION)) \
))
#define DUNE_VERSION_ID(major,minor,revision) \
((unsigned int)((major << 24) + (minor << 16) + revision))
#define DUNE_MODULE_VERSION_ID(module) \
DUNE_VERSION_ID( DUNE_VERSION_JOIN(module,MAJOR), DUNE_VERSION_JOIN(module,MINOR), DUNE_VERSION_JOIN(module,REVISION) )
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment