| 33 #include "config.h" |
33 #include "config.h" |
| 34 #include "types.h" |
34 #include "types.h" |
| 35 |
35 |
| 36 #define APPNAME "LDForge" |
36 #define APPNAME "LDForge" |
| 37 #define VERSION_MAJOR 0 |
37 #define VERSION_MAJOR 0 |
| 38 #define VERSION_MAJOR_STR "0" |
38 #define VERSION_MINOR 0 |
| 39 #define VERSION_MINOR 1 |
39 #define VERSION_PATCH 999 |
| 40 #define VERSION_MINOR_STR "1" |
|
| 41 #define BUILD_ID BUILD_INTERNAL |
40 #define BUILD_ID BUILD_INTERNAL |
| 42 |
41 |
| 43 // ============--- |
42 // ============================================= |
| 44 #define RELEASE (BUILD_ID != BUILD_INTERNAL) |
43 #define RELEASE (BUILD_ID != BUILD_INTERNAL) |
| 45 |
44 |
| 46 #define BUILD_INTERNAL 0 |
45 #define BUILD_INTERNAL 0 |
| 47 #define BUILD_ALPHA 1 |
46 #define BUILD_ALPHA 1 |
| 48 #define BUILD_BETA 2 |
47 #define BUILD_BETA 2 |
| 56 #endif // RELEASE |
55 #endif // RELEASE |
| 57 |
56 |
| 58 void doDevf (const char* func, const char* fmtstr, ...); |
57 void doDevf (const char* func, const char* fmtstr, ...); |
| 59 |
58 |
| 60 // Version string identifier |
59 // Version string identifier |
| |
60 #if VERSION_PATCH > 0 |
| |
61 static const str versionString = fmt ("%d.%d.%d", VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH); |
| |
62 #else |
| 61 static const str versionString = fmt ("%d.%d", VERSION_MAJOR, VERSION_MINOR); |
63 static const str versionString = fmt ("%d.%d", VERSION_MAJOR, VERSION_MINOR); |
| |
64 #endif // VERSION_PATCH |
| 62 |
65 |
| 63 #ifdef __GNUC__ |
66 #ifdef __GNUC__ |
| 64 # define FORMAT_PRINTF(M,N) __attribute__ ((format (printf, M, N))) |
67 # define FORMAT_PRINTF(M,N) __attribute__ ((format (printf, M, N))) |
| 65 # define ATTR(N) __attribute__ ((N)) |
68 # define ATTR(N) __attribute__ ((N)) |
| 66 #else |
69 #else |