22 #ifndef FIFE_VERSION_H
23 #define FIFE_VERSION_H
27 #define FIFE_MAJOR_VERSION 0
28 #define FIFE_MINOR_VERSION 3
29 #define FIFE_SUBMINOR_VERSION 3
35 #define FIFE_STR(s) # s
36 #define FIFE_XSTR(s) FIFE_STR(s)
38 #define FIFE_DOT(a,b) a ## . ## b
39 #define FIFE_XDOT(a,b) FIFE_DOT(a,b)
41 #define FIFE_VERSION_STRING \
43 FIFE_XDOT(FIFE_MAJOR_VERSION, FIFE_MINOR_VERSION), \
44 FIFE_SUBMINOR_VERSION \
48 inline const char* getVersion() {
49 return FIFE_XSTR(FIFE_VERSION_STRING);
52 inline int getMajor() {
53 return FIFE_MAJOR_VERSION;
56 inline int getMinor() {
57 return FIFE_MINOR_VERSION;
60 inline int getSubMinor() {
61 return FIFE_SUBMINOR_VERSION;
64 inline int getRevision() {
78 #undef FIFE_VERSION_STRING
80 #endif //FIFE_VERSION_H
credit to phoku for his NodeDisplay example which the visitor code is adapted from ( he coded the qua...