3 #ifndef LUNCHBOX_VERSION_H
4 #define LUNCHBOX_VERSION_H
12 # define LUNCHBOX_VERSION_MAJOR 1
15 # define LUNCHBOX_VERSION_MINOR 10
18 # define LUNCHBOX_VERSION_PATCH 0
21 # define LUNCHBOX_VERSION_REVISION 0x7d1b569
24 # define LUNCHBOX_VERSION_ABI 3
27 # define LUNCHBOX_VERSION_GT( MAJOR, MINOR, PATCH ) \
28 ( (LUNCHBOX_VERSION_MAJOR>MAJOR) || \
29 (LUNCHBOX_VERSION_MAJOR==MAJOR && (LUNCHBOX_VERSION_MINOR>MINOR || \
30 (LUNCHBOX_VERSION_MINOR==MINOR && LUNCHBOX_VERSION_PATCH>PATCH))))
33 # define LUNCHBOX_VERSION_GE( MAJOR, MINOR, PATCH ) \
34 ( (LUNCHBOX_VERSION_MAJOR>MAJOR) || \
35 (LUNCHBOX_VERSION_MAJOR==MAJOR && (LUNCHBOX_VERSION_MINOR>MINOR || \
36 (LUNCHBOX_VERSION_MINOR==MINOR && LUNCHBOX_VERSION_PATCH>=PATCH))))
39 # define LUNCHBOX_VERSION_LT( MAJOR, MINOR, PATCH ) \
40 ( (LUNCHBOX_VERSION_MAJOR<MAJOR) || \
41 (LUNCHBOX_VERSION_MAJOR==MAJOR && (LUNCHBOX_VERSION_MINOR<MINOR || \
42 (LUNCHBOX_VERSION_MINOR==MINOR && LUNCHBOX_VERSION_PATCH<PATCH))))
45 # define LUNCHBOX_VERSION_LE( MAJOR, MINOR, PATCH ) \
46 ( (LUNCHBOX_VERSION_MAJOR<MAJOR) || \
47 (LUNCHBOX_VERSION_MAJOR==MAJOR && (LUNCHBOX_VERSION_MINOR<MINOR || \
48 (LUNCHBOX_VERSION_MINOR==MINOR && LUNCHBOX_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()==LUNCHBOX_VERSION_MAJOR &&
86 getMinor()==LUNCHBOX_VERSION_MINOR;
Defines export visibility macros for Lunchbox.
static bool check()
Runtime check for ABI compatibility.
Information about the current Lunchbox version.