Dune Core Modules (2.4.2)
Go to the documentation of this file.
26#define DUNE_VERSION_JOIN(module,type) module ## _VERSION_ ## type
42#define DUNE_VERSION_EQUAL(module,major,minor) \
43 ((DUNE_VERSION_JOIN(module,MAJOR) == major) && \
44 (DUNE_VERSION_JOIN(module,MINOR) == minor))
60#define DUNE_VERSION_EQUAL_REV(module,major,minor,revision) \
61 ( DUNE_VERSION_EQUAL(module,major,minor) && \
62 (DUNE_VERSION_JOIN(module,REVISION) == revision))
78#define DUNE_VERSION_NEWER(module,major,minor) \
79 ((DUNE_VERSION_JOIN(module,MAJOR) > major) \
80 || ((DUNE_VERSION_JOIN(module,MAJOR) == major) && (DUNE_VERSION_JOIN(module,MINOR) >= minor)))
96#define DUNE_VERSION_NEWER_REV(module,major,minor,revision) \
97 ((DUNE_VERSION_JOIN(module,MAJOR) > major) \
98 || ((DUNE_VERSION_JOIN(module,MAJOR) == major) && (DUNE_VERSION_JOIN(module,MINOR) > minor)) \
99 || ((DUNE_VERSION_JOIN(module,MAJOR) == major) && (DUNE_VERSION_JOIN(module,MINOR) == minor) \
100 && (DUNE_VERSION_JOIN(module,REVISION) >= revision)))
116#define DUNE_VERSION_ID(major,minor,revision) \
117 ((unsigned int)((major << 24) + (minor << 16) + revision))
133#define DUNE_MODULE_VERSION_ID(module) \
134 DUNE_VERSION_ID( DUNE_VERSION_JOIN(module,MAJOR), DUNE_VERSION_JOIN(module,MINOR), DUNE_VERSION_JOIN(module,REVISION) )