Dune Core Modules (2.6.0)
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_GTE(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_LT(module,major,minor) \
97 ! DUNE_VERSION_GTE(module,major,minor)
114#define DUNE_VERSION_NEWER(module,major,minor) \
115 DUNE_VERSION_GTE(module,major,minor)
131#define DUNE_VERSION_GT(module,major,minor) \
132 ((DUNE_VERSION_JOIN(module,MAJOR) > major) \
133 || ((DUNE_VERSION_JOIN(module,MAJOR) == major) && (DUNE_VERSION_JOIN(module,MINOR) > minor)))
149#define DUNE_VERSION_LTE(module,major,minor) \
150 ! DUNE_VERSION_GT(module,major,minor)
166#define DUNE_VERSION_GTE_REV(module,major,minor,revision) \
167 ((DUNE_VERSION_JOIN(module,MAJOR) > major) \
168 || ((DUNE_VERSION_JOIN(module,MAJOR) == major) && (DUNE_VERSION_JOIN(module,MINOR) > minor)) \
169 || ((DUNE_VERSION_JOIN(module,MAJOR) == major) && (DUNE_VERSION_JOIN(module,MINOR) == minor) \
170 && (DUNE_VERSION_JOIN(module,REVISION) >= revision)))
186#define DUNE_VERSION_LT_REV(module,major,minor,revision) \
187 ! DUNE_VERSION_GTE_REV(module,major,minor,revision)
204#define DUNE_VERSION_NEWER_REV(module,major,minor,revision) \
205 DUNE_VERSION_GTE_REV(module,major,minor,revision)
221#define DUNE_VERSION_GT_REV(module,major,minor,revision) \
222 ((DUNE_VERSION_JOIN(module,MAJOR) > major) \
223 || ((DUNE_VERSION_JOIN(module,MAJOR) == major) && (DUNE_VERSION_JOIN(module,MINOR) > minor)) \
224 || ((DUNE_VERSION_JOIN(module,MAJOR) == major) && (DUNE_VERSION_JOIN(module,MINOR) == minor) \
225 && (DUNE_VERSION_JOIN(module,REVISION) > revision)))
241#define DUNE_VERSION_LTE_REV(module,major,minor,revision) \
242 ! DUNE_VERSION_GT_REV(module,major,minor,revision)
258#define DUNE_VERSION_ID(major,minor,revision) \
259 ((unsigned int)((major << 24) + (minor << 16) + revision))
275#define DUNE_MODULE_VERSION_ID(module) \
276 DUNE_VERSION_ID( DUNE_VERSION_JOIN(module,MAJOR), DUNE_VERSION_JOIN(module,MINOR), DUNE_VERSION_JOIN(module,REVISION) )