18 #ifndef GLSTATS_VERSION_H
19 #define GLSTATS_VERSION_H
21 #include <GLStats/api.h>
22 #include <GLStats/types.h>
29 # define GLSTATS_VERSION_MAJOR 0
32 # define GLSTATS_VERSION_MINOR 1
35 # define GLSTATS_VERSION_PATCH 0
38 # define GLSTATS_VERSION_ABI 100
41 # define GLSTATS_VERSION_GT( MAJOR, MINOR, PATCH ) \
42 ( (GLSTATS_VERSION_MAJOR>MAJOR) || \
43 (GLSTATS_VERSION_MAJOR==MAJOR && \
44 (GLSTATS_VERSION_MINOR>MINOR || \
45 (GLSTATS_VERSION_MINOR==MINOR && GLSTATS_VERSION_PATCH>PATCH))))
48 # define GLSTATS_VERSION_GE( MAJOR, MINOR, PATCH ) \
49 ( (GLSTATS_VERSION_MAJOR>MAJOR) || \
50 (GLSTATS_VERSION_MAJOR==MAJOR && \
51 (GLSTATS_VERSION_MINOR>MINOR || \
52 (GLSTATS_VERSION_MINOR==MINOR && GLSTATS_VERSION_PATCH>=PATCH))))
55 # define GLSTATS_VERSION_LT( MAJOR, MINOR, PATCH ) \
56 ( (GLSTATS_VERSION_MAJOR<MAJOR) || \
57 (GLSTATS_VERSION_MAJOR==MAJOR && \
58 (GLSTATS_VERSION_MINOR<MINOR || \
59 (GLSTATS_VERSION_MINOR==MINOR && GLSTATS_VERSION_PATCH<PATCH))))
62 # define GLSTATS_VERSION_LE( MAJOR, MINOR, PATCH ) \
63 ( (GLSTATS_VERSION_MAJOR<MAJOR) || \
64 (GLSTATS_VERSION_MAJOR==MAJOR && \
65 (GLSTATS_VERSION_MINOR<MINOR || \
66 (GLSTATS_VERSION_MINOR==MINOR && GLSTATS_VERSION_PATCH<=PATCH))))
73 static uint32_t getMajor();
76 static uint32_t getMinor();
79 static uint32_t getPatch();
82 static std::string getRevision();
85 static uint32_t getABI();
88 static uint32_t getInt();
91 static float getFloat();
97 static std::string getString();
105 return getMajor()==GLSTATS_VERSION_MAJOR &&
106 getMinor()==GLSTATS_VERSION_MINOR;
111 #endif //GLSTATS_VERSION_H