22 #ifndef FIFE_VERSION_H
23 #define FIFE_VERSION_H
28 #ifndef FIFE_MAJOR_VERSION
29 #define FIFE_MAJOR_VERSION 0
31 #ifndef FIFE_MINOR_VERSION
32 #define FIFE_MINOR_VERSION 4
34 #ifndef FIFE_PATCH_VERSION
35 #define FIFE_PATCH_VERSION 0
44 #ifndef FIFE_PRERELEASE_TYPE
45 #define FIFE_PRERELEASE_TYPE 0
47 #ifndef FIFE_PRERELEASE_VERSION
48 #define FIFE_PRERELEASE_VERSION 0
55 #define FIFE_STR(s) # s
56 #define FIFE_XSTR(s) FIFE_STR(s)
58 #define FIFE_DOT(a,b) a.b
59 #define FIFE_XDOT(a,b) FIFE_DOT(a,b)
61 #define FIFE_PLUS(a,b) a+b
62 #define FIFE_XPLUS(a,b) FIFE_PLUS(a,b)
64 #define FIFE_MINUS(a,b) a-b
65 #define FIFE_XMINUS(a,b) FIFE_MINUS(a,b)
67 #if FIFE_PRERELEASE_TYPE==1
68 #define FIFE_PRERELEASE alpha
69 #elif FIFE_PRERELEASE_TYPE==2
70 #define FIFE_PRERELEASE beta
71 #elif FIFE_PRERELEASE_TYPE==3
72 #define FIFE_PRERELEASE rc
75 #if FIFE_PRERELEASE_VERSION>0
76 #ifdef FIFE_PRERELEASE
77 #define FIFE_PRERELEASE_STR \
80 FIFE_PRERELEASE_VERSION \
85 #define FIFE_VERSION \
87 FIFE_XDOT(FIFE_MAJOR_VERSION, FIFE_MINOR_VERSION), \
91 #ifdef FIFE_PRERELEASE_STR
92 #define FIFE_VERSION_STRING \
99 #ifndef FIFE_VERSION_STRING
100 #define FIFE_VERSION_STRING \
106 #undef FIFE_VERSION_STRING
107 #ifdef FIFE_PRERELEASE_STR
108 #define FIFE_VERSION_STRING \
112 FIFE_PRERELEASE_STR, \
117 #define FIFE_VERSION_STRING \
125 #define FIFE_GIT_HASH ""
130 #ifndef FIFE_VERSION_STRING
131 #define FIFE_VERSION_STRING FIFE_VERSION
169 #undef FIFE_VERSION_STRING
171 #undef FIFE_PRERELEASE
172 #undef FIFE_PRERELEASE_STR
174 #endif //FIFE_VERSION_H
#define FIFE_MAJOR_VERSION
These version numbers should be checked and updated as part of the release process for FIFE...
const char * getVersion()
#define FIFE_MINOR_VERSION
#define FIFE_PATCH_VERSION
#define FIFE_VERSION_STRING