1 /* |
1 /* |
2 * LDForge: LDraw parts authoring CAD |
2 * LDForge: LDraw parts authoring CAD |
3 * Copyright (C) 2013 Santeri Piippo |
3 * Copyright (C) 2013 Santeri Piippo |
4 * |
4 * |
5 * This program is free software: you can redistribute it and/or modify |
5 * This program is free software: you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License as published by |
6 * it under the terms of the GNU General Public License as published by |
7 * the Free Software Foundation, either version 3 of the License, or |
7 * the Free Software Foundation, either version 3 of the License, or |
8 * (at your option) any later version. |
8 * (at your option) any later version. |
9 * |
9 * |
10 * This program is distributed in the hope that it will be useful, |
10 * This program is distributed in the hope that it will be useful, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 * GNU General Public License for more details. |
13 * GNU General Public License for more details. |
14 * |
14 * |
15 * You should have received a copy of the GNU General Public License |
15 * You should have received a copy of the GNU General Public License |
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 */ |
17 */ |
18 |
18 |
19 // ============================================================================= |
19 // ============================================================================= |
54 // ============================================= |
54 // ============================================= |
55 #if (BUILD_ID != BUILD_INTERNAL) |
55 #if (BUILD_ID != BUILD_INTERNAL) |
56 #define RELEASE |
56 #define RELEASE |
57 #endif // BUILD_ID |
57 #endif // BUILD_ID |
58 |
58 |
59 #ifndef RELEASE |
|
60 # define devf(...) doDevf (__func__, __VA_ARGS__); |
|
61 #else |
|
62 # define devf(...) |
|
63 #endif // RELEASE |
|
64 |
|
65 #define alias auto& |
59 #define alias auto& |
66 #define elif else if |
60 #define elif else if |
67 |
|
68 void doDevf (const char* func, const char* fmtstr, ...); |
|
69 |
61 |
70 // Null pointer |
62 // Null pointer |
71 static const std::nullptr_t null = nullptr; |
63 static const std::nullptr_t null = nullptr; |
72 |
64 |
73 #ifdef __GNUC__ |
65 #ifdef __GNUC__ |