24 #include <lunchbox/types.h>
31 # define CO_VERSION_MAJOR 1
34 # define CO_VERSION_MINOR 0
37 # define CO_VERSION_PATCH 1
40 # define CO_VERSION_REVISION 6cb3433
43 # define CO_VERSION_ABI 1
46 # define CO_LUNCHBOX_VERSION 1.8.0
49 # define CO_VERSION_GT( MAJOR, MINOR, PATCH ) \
50 ( (CO_VERSION_MAJOR>MAJOR) || \
51 (CO_VERSION_MAJOR==MAJOR && (CO_VERSION_MINOR>MINOR || \
52 (CO_VERSION_MINOR==MINOR && CO_VERSION_PATCH>PATCH))))
55 # define CO_VERSION_GE( MAJOR, MINOR, PATCH ) \
56 ( (CO_VERSION_MAJOR>MAJOR) || \
57 (CO_VERSION_MAJOR==MAJOR && (CO_VERSION_MINOR>MINOR || \
58 (CO_VERSION_MINOR==MINOR && CO_VERSION_PATCH>=PATCH))))
61 # define CO_VERSION_LT( MAJOR, MINOR, PATCH ) \
62 ( (CO_VERSION_MAJOR<MAJOR) || \
63 (CO_VERSION_MAJOR==MAJOR && (CO_VERSION_MINOR<MINOR || \
64 (CO_VERSION_MINOR==MINOR && CO_VERSION_PATCH<PATCH))))
67 # define CO_VERSION_LE( MAJOR, MINOR, PATCH ) \
68 ( (CO_VERSION_MAJOR<MAJOR) || \
69 (CO_VERSION_MAJOR==MAJOR && (CO_VERSION_MINOR<MINOR || \
70 (CO_VERSION_MINOR==MINOR && CO_VERSION_PATCH<=PATCH))))
77 static uint32_t getMajor();
80 static uint32_t getMinor();
83 static uint32_t getPatch();
86 static std::string getRevision();
89 static uint32_t getABI();
92 static uint32_t getInt();
95 static float getFloat();
101 static std::string getString();
108 {
return getMajor()==CO_VERSION_MAJOR && getMinor()==CO_VERSION_MINOR; }
112 #endif //CO_VERSION_H
Information about the current Collage version.