correctly handle the version string
This commit is contained in:
parent
c3fbf34cc3
commit
ab44959775
|
@ -13,11 +13,12 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define GWSTR(x) #x
|
#define GWSTR(x) #x
|
||||||
|
#define GWSTRINGIFY(x) GWSTR(x)
|
||||||
#ifdef GWRELEASEVERSION
|
#ifdef GWRELEASEVERSION
|
||||||
#define VERSION GWSTR(GWRELEASEVERSION)
|
#define VERSION GWSTRINGIFY(GWRELEASEVERSION)
|
||||||
#define LOGLEVEL GwLog::ERROR
|
#define LOGLEVEL GwLog::ERROR
|
||||||
#elif GWDEVVERSION
|
#elif GWDEVVERSION
|
||||||
#define VERSION GWSTR(GWDEVVERSION)
|
#define VERSION GWSTRINGIFY(GWDEVVERSION)
|
||||||
#define LOGLEVEL GwLog::DEBUG
|
#define LOGLEVEL GwLog::DEBUG
|
||||||
#else
|
#else
|
||||||
#define VERSION "0.7.0"
|
#define VERSION "0.7.0"
|
||||||
|
|
Loading…
Reference in New Issue