src/main.h

changeset 613
2d01590da286
parent 611
6679e47b019f
child 614
aac6f0021070
equal deleted inserted replaced
612:ad1ba9509ba3 613:2d01590da286
40 #define VERSION_PATCH 999 40 #define VERSION_PATCH 999
41 #define BUILD_ID BUILD_INTERNAL 41 #define BUILD_ID BUILD_INTERNAL
42 42
43 #define BUILD_INTERNAL 0 43 #define BUILD_INTERNAL 0
44 #define BUILD_RELEASE 1 44 #define BUILD_RELEASE 1
45
46 // =============================================
47 #ifndef COMPILE_DATE
48 # error COMPILE_DATE is not set (qmake should have done this)
49 #endif // COMPILE_DATE
45 50
46 // ============================================= 51 // =============================================
47 #ifdef DEBUG 52 #ifdef DEBUG
48 # undef RELEASE 53 # undef RELEASE
49 #endif // DEBUG 54 #endif // DEBUG
97 102
98 // Version string identifier 103 // Version string identifier
99 QString versionString(); 104 QString versionString();
100 QString fullVersionString(); 105 QString fullVersionString();
101 106
102 QString getApplicationDirectory();
103
104 #define properties private 107 #define properties private
105 #define typedefs public 108 #define typedefs public
106 #define for_axes(AX) for (const Axis AX : std::initializer_list<const Axis> ({X, Y, Z})) 109 #define for_axes(AX) for (const Axis AX : std::initializer_list<const Axis> ({X, Y, Z}))
107 110
108 // ----------------------------------------------------------------------------- 111 // -----------------------------------------------------------------------------
109 #ifdef IN_IDE_PARSER // KDevelop workarounds: 112 #ifdef IN_IDE_PARSER // KDevelop workarounds:
110 # error IN_IDE_PARSER is defined (this code is only for KDevelop workarounds) 113 # error IN_IDE_PARSER is defined (this code is only for KDevelop workarounds)
114 # define COMPILE_DATE "14-01-10 10:31:09"
111 115
112 # ifndef va_start 116 # ifndef va_start
113 # define va_start(va, arg) 117 # define va_start(va, arg)
114 # endif // va_start 118 # endif // va_start
115 119

mercurial