28 #include <stdint.h> |
28 #include <stdint.h> |
29 #include <stdarg.h> |
29 #include <stdarg.h> |
30 #include <QString> |
30 #include <QString> |
31 #include <QTextFormat> |
31 #include <QTextFormat> |
32 |
32 |
|
33 #include "Version.h" |
33 #include "PropertyMacro.h" |
34 #include "PropertyMacro.h" |
34 #include "Configuration.h" |
35 #include "Configuration.h" |
35 |
|
36 #define APPNAME "LDForge" |
|
37 #define UNIXNAME "ldforge" |
|
38 #define VERSION_MAJOR 0 |
|
39 #define VERSION_MINOR 2 |
|
40 #define VERSION_PATCH 999 |
|
41 #define BUILD_ID BUILD_INTERNAL |
|
42 |
|
43 #define BUILD_INTERNAL 0 |
|
44 #define BUILD_RELEASE 1 |
|
45 |
|
46 // ============================================= |
|
47 #ifdef DEBUG |
|
48 # undef RELEASE |
|
49 #endif // DEBUG |
|
50 |
|
51 #ifdef RELEASE |
|
52 # undef DEBUG |
|
53 #endif // RELEASE |
|
54 |
36 |
55 // ============================================= |
37 // ============================================= |
56 #define alias auto& |
38 #define alias auto& |
57 #define elif(A) else if (A) |
39 #define elif(A) else if (A) |
58 |
40 |
95 # define assert(N) { ((N) ? (void) 0 : assertionFailure (__FILE__, __LINE__, FUNCNAME, #N)); } |
77 # define assert(N) { ((N) ? (void) 0 : assertionFailure (__FILE__, __LINE__, FUNCNAME, #N)); } |
96 #else |
78 #else |
97 # define assert(N) {} |
79 # define assert(N) {} |
98 #endif // DEBUG |
80 #endif // DEBUG |
99 |
81 |
100 // Version string identifier |
82 // Version string identifier. These are defined in Version.cc. |
101 QString versionString(); |
83 const char* versionString(); |
102 QString fullVersionString(); |
84 const char* fullVersionString(); |
103 |
85 |
104 #define properties private |
86 #define properties private |
105 #define typedefs public |
87 #define typedefs public |
106 #define for_axes(AX) for (const Axis AX : std::initializer_list<const Axis> ({X, Y, Z})) |
88 #define for_axes(AX) for (const Axis AX : std::initializer_list<const Axis> ({X, Y, Z})) |
107 |
89 |