Dune Core Modules (unstable)
Go to the documentation of this file.
8#include <dune-common-config.hh>
30#define DUNE_VERSION_JOIN(module,type) module ## _VERSION_ ## type
46#define DUNE_VERSION_EQUAL(module,major,minor) \
47 ((DUNE_VERSION_JOIN(module,MAJOR) == major) && \
48 (DUNE_VERSION_JOIN(module,MINOR) == minor))
64#define DUNE_VERSION_EQUAL_REV(module,major,minor,revision) \
65 ( DUNE_VERSION_EQUAL(module,major,minor) && \
66 (DUNE_VERSION_JOIN(module,REVISION) == revision))
82#define DUNE_VERSION_GTE(module,major,minor) \
83 ((DUNE_VERSION_JOIN(module,MAJOR) > major) \
84 || ((DUNE_VERSION_JOIN(module,MAJOR) == major) && (DUNE_VERSION_JOIN(module,MINOR) >= minor)))
100#define DUNE_VERSION_LT(module,major,minor) \
101 ! DUNE_VERSION_GTE(module,major,minor)
117#define DUNE_VERSION_GT(module,major,minor) \
118 ((DUNE_VERSION_JOIN(module,MAJOR) > major) \
119 || ((DUNE_VERSION_JOIN(module,MAJOR) == major) && (DUNE_VERSION_JOIN(module,MINOR) > minor)))
135#define DUNE_VERSION_LTE(module,major,minor) \
136 ! DUNE_VERSION_GT(module,major,minor)
152#define DUNE_VERSION_GTE_REV(module,major,minor,revision) \
153 ((DUNE_VERSION_JOIN(module,MAJOR) > major) \
154 || ((DUNE_VERSION_JOIN(module,MAJOR) == major) && (DUNE_VERSION_JOIN(module,MINOR) > minor)) \
155 || ((DUNE_VERSION_JOIN(module,MAJOR) == major) && (DUNE_VERSION_JOIN(module,MINOR) == minor) \
156 && (DUNE_VERSION_JOIN(module,REVISION) >= revision)))
172#define DUNE_VERSION_LT_REV(module,major,minor,revision) \
173 ! DUNE_VERSION_GTE_REV(module,major,minor,revision)
189#define DUNE_VERSION_GT_REV(module,major,minor,revision) \
190 ((DUNE_VERSION_JOIN(module,MAJOR) > major) \
191 || ((DUNE_VERSION_JOIN(module,MAJOR) == major) && (DUNE_VERSION_JOIN(module,MINOR) > minor)) \
192 || ((DUNE_VERSION_JOIN(module,MAJOR) == major) && (DUNE_VERSION_JOIN(module,MINOR) == minor) \
193 && (DUNE_VERSION_JOIN(module,REVISION) > revision)))
209#define DUNE_VERSION_LTE_REV(module,major,minor,revision) \
210 ! DUNE_VERSION_GT_REV(module,major,minor,revision)
226#define DUNE_VERSION_ID(major,minor,revision) \
227 ((unsigned int)((major << 24) + (minor << 16) + revision))
243#define DUNE_MODULE_VERSION_ID(module) \
244 DUNE_VERSION_ID( DUNE_VERSION_JOIN(module,MAJOR), DUNE_VERSION_JOIN(module,MINOR), DUNE_VERSION_JOIN(module,REVISION) )