Dune Core Modules (2.9.0)
Go to the documentation of this file.
28#define DUNE_VERSION_JOIN(module,type) module ## _VERSION_ ## type
44#define DUNE_VERSION_EQUAL(module,major,minor) \
45 ((DUNE_VERSION_JOIN(module,MAJOR) == major) && \
46 (DUNE_VERSION_JOIN(module,MINOR) == minor))
62#define DUNE_VERSION_EQUAL_REV(module,major,minor,revision) \
63 ( DUNE_VERSION_EQUAL(module,major,minor) && \
64 (DUNE_VERSION_JOIN(module,REVISION) == revision))
80#define DUNE_VERSION_GTE(module,major,minor) \
81 ((DUNE_VERSION_JOIN(module,MAJOR) > major) \
82 || ((DUNE_VERSION_JOIN(module,MAJOR) == major) && (DUNE_VERSION_JOIN(module,MINOR) >= minor)))
98#define DUNE_VERSION_LT(module,major,minor) \
99 ! DUNE_VERSION_GTE(module,major,minor)
116#define DUNE_VERSION_NEWER(module,major,minor) \
117 DUNE_VERSION_GTE(module,major,minor)
133#define DUNE_VERSION_GT(module,major,minor) \
134 ((DUNE_VERSION_JOIN(module,MAJOR) > major) \
135 || ((DUNE_VERSION_JOIN(module,MAJOR) == major) && (DUNE_VERSION_JOIN(module,MINOR) > minor)))
151#define DUNE_VERSION_LTE(module,major,minor) \
152 ! DUNE_VERSION_GT(module,major,minor)
168#define DUNE_VERSION_GTE_REV(module,major,minor,revision) \
169 ((DUNE_VERSION_JOIN(module,MAJOR) > major) \
170 || ((DUNE_VERSION_JOIN(module,MAJOR) == major) && (DUNE_VERSION_JOIN(module,MINOR) > minor)) \
171 || ((DUNE_VERSION_JOIN(module,MAJOR) == major) && (DUNE_VERSION_JOIN(module,MINOR) == minor) \
172 && (DUNE_VERSION_JOIN(module,REVISION) >= revision)))
188#define DUNE_VERSION_LT_REV(module,major,minor,revision) \
189 ! DUNE_VERSION_GTE_REV(module,major,minor,revision)
206#define DUNE_VERSION_NEWER_REV(module,major,minor,revision) \
207 DUNE_VERSION_GTE_REV(module,major,minor,revision)
223#define DUNE_VERSION_GT_REV(module,major,minor,revision) \
224 ((DUNE_VERSION_JOIN(module,MAJOR) > major) \
225 || ((DUNE_VERSION_JOIN(module,MAJOR) == major) && (DUNE_VERSION_JOIN(module,MINOR) > minor)) \
226 || ((DUNE_VERSION_JOIN(module,MAJOR) == major) && (DUNE_VERSION_JOIN(module,MINOR) == minor) \
227 && (DUNE_VERSION_JOIN(module,REVISION) > revision)))
243#define DUNE_VERSION_LTE_REV(module,major,minor,revision) \
244 ! DUNE_VERSION_GT_REV(module,major,minor,revision)
260#define DUNE_VERSION_ID(major,minor,revision) \
261 ((unsigned int)((major << 24) + (minor << 16) + revision))
277#define DUNE_MODULE_VERSION_ID(module) \
278 DUNE_VERSION_ID( DUNE_VERSION_JOIN(module,MAJOR), DUNE_VERSION_JOIN(module,MINOR), DUNE_VERSION_JOIN(module,REVISION) )