43 #define BUILD_ALPHA 1 |
43 #define BUILD_ALPHA 1 |
44 #define BUILD_BETA 2 |
44 #define BUILD_BETA 2 |
45 #define BUILD_RC 3 |
45 #define BUILD_RC 3 |
46 #define BUILD_RELEASE 4 |
46 #define BUILD_RELEASE 4 |
47 |
47 |
|
48 // RC Number for BUILD_RC |
|
49 #define RC_NUMBER 0 |
|
50 |
48 // Uncomment for portable build... maybe it's time to move to cmake? |
51 // Uncomment for portable build... maybe it's time to move to cmake? |
49 #define PORTABLE |
52 // #define PORTABLE |
50 |
53 |
51 // ============================================= |
54 // ============================================= |
52 #if (BUILD_ID != BUILD_INTERNAL) |
55 #if (BUILD_ID != BUILD_INTERNAL) |
53 #define RELEASE |
56 #define RELEASE |
54 #endif // BUILD_ID |
57 #endif // BUILD_ID |
61 |
64 |
62 #define alias auto& |
65 #define alias auto& |
63 #define elif else if |
66 #define elif else if |
64 |
67 |
65 void doDevf (const char* func, const char* fmtstr, ...); |
68 void doDevf (const char* func, const char* fmtstr, ...); |
66 |
|
67 // Version string identifier |
|
68 const char* versionString(); |
|
69 const char* versionMoniker(); |
|
70 const char* fullVersionString(); |
|
71 |
69 |
72 // Null pointer |
70 // Null pointer |
73 static const std::nullptr_t null = nullptr; |
71 static const std::nullptr_t null = nullptr; |
74 |
72 |
75 #ifdef __GNUC__ |
73 #ifdef __GNUC__ |
164 typedef QString str; |
162 typedef QString str; |
165 |
163 |
166 void assertionFailure (const char* file, const ulong line, const char* funcname, const char* expr); |
164 void assertionFailure (const char* file, const ulong line, const char* funcname, const char* expr); |
167 void fatalError (const char* file, const ulong line, const char* funcname, str errmsg); |
165 void fatalError (const char* file, const ulong line, const char* funcname, str errmsg); |
168 |
166 |
|
167 // Version string identifier |
|
168 str versionString(); |
|
169 str versionMoniker(); |
|
170 str fullVersionString(); |
|
171 |
169 #define assert(N) \ |
172 #define assert(N) \ |
170 (N) ? ((void)(0)) : assertionFailure(__FILE__, __LINE__, FUNCNAME, #N) |
173 ((N) ? (void) 0 : assertionFailure (__FILE__, __LINE__, FUNCNAME, #N)) |
171 |
174 |
172 #define fatal(MSG) \ |
175 #define fatal(MSG) \ |
173 fatalError (__FILE__, __LINE__, FUNCNAME, MSG) |
176 fatalError (__FILE__, __LINE__, FUNCNAME, MSG) |
174 |
177 |
175 // ----------------------------------------------------------------------------- |
178 // ----------------------------------------------------------------------------- |