X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=gmqcc.h;h=a6053a6d1cd60e5a21efb74534ed58183ddc1a6e;hp=e4a800abcde9683b08402c1c9ff941846f8632d1;hb=3ecae267adeb4395d6f6df7ebb05cd56fc03bfb8;hpb=1c1ea1d0f7f4a87877e343582b461ec5d43a9e4b diff --git a/gmqcc.h b/gmqcc.h index e4a800a..a6053a6 100644 --- a/gmqcc.h +++ b/gmqcc.h @@ -45,6 +45,27 @@ #define GMQCC_VERSION_BUILD(J,N,P) (((J)<<16)|((N)<<8)|(P)) #define GMQCC_VERSION \ GMQCC_VERSION_BUILD(GMQCC_VERSION_MAJOR, GMQCC_VERSION_MINOR, GMQCC_VERSION_PATCH) +/* Undefine the following on a release-tag: */ +#define GMQCC_VERSION_TYPE_DEVEL + +/* Full version string in case we need it */ +#ifdef GMQCC_GITINFO +# define GMQCC_DEV_VERSION_STRING "git build: " GMQCC_GITINFO "\n" +#elif defined(GMQCC_VERSION_TYPE_DEVEL) +# define GMQCC_DEV_VERSION_STRING "development build\n" +#else +# define GMQCC_DEV_VERSION_STRING +#endif + +#define GMQCC_STRINGIFY(x) #x +#define GMQCC_IND_STRING(x) GMQCC_STRINGIFY(x) +#define GMQCC_FULL_VERSION_STRING \ +"GMQCC " \ +GMQCC_IND_STRING(GMQCC_VERSION_MAJOR) "." \ +GMQCC_IND_STRING(GMQCC_VERSION_MINOR) "." \ +GMQCC_IND_STRING(GMQCC_VERSION_PATCH) \ +" Built " __DATE__ " " __TIME__ \ +"\n" GMQCC_DEV_VERSION_STRING /* * We cannot rely on C99 at all, since compilers like MSVC @@ -1127,6 +1148,8 @@ typedef struct { uint16_t forced_crc; /* --force-crc= */ bool pp_only; /* -E */ size_t max_array_size; /* --max-array= */ + bool add_info; /* --add-info */ + bool correction; /* --correct */ uint32_t flags [1 + (COUNT_FLAGS / 32)]; uint32_t warn [1 + (COUNT_WARNINGS / 32)];