3 #ifndef COLLAGE_VERSION_H
4 #define COLLAGE_VERSION_H
12 # define CO_VERSION_MAJOR 1
15 # define CO_VERSION_MINOR 1
18 # define CO_VERSION_PATCH 2
21 # define CO_VERSION_REVISION 0xee1a2ac
24 # define CO_VERSION_ABI 2
27 # define CO_VERSION_GT( MAJOR, MINOR, PATCH ) \
28 ( (CO_VERSION_MAJOR>MAJOR) || \
29 (CO_VERSION_MAJOR==MAJOR && (CO_VERSION_MINOR>MINOR || \
30 (CO_VERSION_MINOR==MINOR && CO_VERSION_PATCH>PATCH))))
33 # define CO_VERSION_GE( MAJOR, MINOR, PATCH ) \
34 ( (CO_VERSION_MAJOR>MAJOR) || \
35 (CO_VERSION_MAJOR==MAJOR && (CO_VERSION_MINOR>MINOR || \
36 (CO_VERSION_MINOR==MINOR && CO_VERSION_PATCH>=PATCH))))
39 # define CO_VERSION_LT( MAJOR, MINOR, PATCH ) \
40 ( (CO_VERSION_MAJOR<MAJOR) || \
41 (CO_VERSION_MAJOR==MAJOR && (CO_VERSION_MINOR<MINOR || \
42 (CO_VERSION_MINOR==MINOR && CO_VERSION_PATCH<PATCH))))
45 # define CO_VERSION_LE( MAJOR, MINOR, PATCH ) \
46 ( (CO_VERSION_MAJOR<MAJOR) || \
47 (CO_VERSION_MAJOR==MAJOR && (CO_VERSION_MINOR<MINOR || \
48 (CO_VERSION_MINOR==MINOR && CO_VERSION_PATCH<=PATCH))))
55 static int getMajor();
58 static int getMinor();
61 static int getPatch();
64 static std::string getString();
67 static int getRevision();
73 static std::string getRevString();
85 return getMajor()==CO_VERSION_MAJOR &&
86 getMinor()==CO_VERSION_MINOR;
Defines export visibility macros for Collage.
static bool check()
Runtime check for ABI compatibility.
Information about the current Collage version.