8 #ifndef LUNCHBOX_VERSION_H 9 #define LUNCHBOX_VERSION_H 17 # define LUNCHBOX_VERSION_MAJOR 1 20 # define LUNCHBOX_VERSION_MINOR 17 23 # define LUNCHBOX_VERSION_PATCH 0 26 # define LUNCHBOX_VERSION_REVISION 0x3231f29 29 # define LUNCHBOX_VERSION_ABI 10ull 32 # define LUNCHBOX_VERSION_STRING \ 36 # define LUNCHBOX_REV_STRING \ 40 # define LUNCHBOX_VERSION_GT( MAJOR, MINOR, PATCH ) \ 41 ( (LUNCHBOX_VERSION_MAJOR>MAJOR) || \ 42 (LUNCHBOX_VERSION_MAJOR==MAJOR && (LUNCHBOX_VERSION_MINOR>MINOR || \ 43 (LUNCHBOX_VERSION_MINOR==MINOR && LUNCHBOX_VERSION_PATCH>PATCH)))) 46 # define LUNCHBOX_VERSION_GE( MAJOR, MINOR, PATCH ) \ 47 ( (LUNCHBOX_VERSION_MAJOR>MAJOR) || \ 48 (LUNCHBOX_VERSION_MAJOR==MAJOR && (LUNCHBOX_VERSION_MINOR>MINOR || \ 49 (LUNCHBOX_VERSION_MINOR==MINOR && LUNCHBOX_VERSION_PATCH>=PATCH)))) 52 # define LUNCHBOX_VERSION_LT( MAJOR, MINOR, PATCH ) \ 53 ( (LUNCHBOX_VERSION_MAJOR<MAJOR) || \ 54 (LUNCHBOX_VERSION_MAJOR==MAJOR && (LUNCHBOX_VERSION_MINOR<MINOR || \ 55 (LUNCHBOX_VERSION_MINOR==MINOR && LUNCHBOX_VERSION_PATCH<PATCH)))) 58 # define LUNCHBOX_VERSION_LE( MAJOR, MINOR, PATCH ) \ 59 ( (LUNCHBOX_VERSION_MAJOR<MAJOR) || \ 60 (LUNCHBOX_VERSION_MAJOR==MAJOR && (LUNCHBOX_VERSION_MINOR<MINOR || \ 61 (LUNCHBOX_VERSION_MINOR==MINOR && LUNCHBOX_VERSION_PATCH<=PATCH)))) 68 static int getMajor();
71 static int getMinor();
74 static int getPatch();
77 static std::string getString();
80 static unsigned long long getRevision();
86 static std::string getRevString();
109 "description": "Version information of the running application", 111 "major": { "type": "integer" }, 112 "minor": { "type": "integer" }, 113 "patch": { "type": "integer" }, 114 "abi": { "type": "integer" }, 115 "revision": { "type": "string" } 130 "revision": "3231f29" Defines export visibility macros for library Lunchbox.
static std::string toJSON()
static bool check()
Runtime check for ABI compatibility.
static std::string getSchema()
#define LUNCHBOX_VERSION_MAJOR
The current major version.
Abstraction layer and common utilities for multi-threaded programming.
#define LUNCHBOX_VERSION_MINOR
The current minor version.
Information about the current Lunchbox version.