From 626fc57ced699a89ec5152af4d0ed52d6b4f638b Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Mon, 21 Jun 2010 23:45:49 +0000 Subject: [PATCH] - added version string addition to tell if debug is enabled --- source/glest_game/facilities/game_util.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/glest_game/facilities/game_util.cpp b/source/glest_game/facilities/game_util.cpp index 8f7e9e694..95d591d6c 100644 --- a/source/glest_game/facilities/game_util.cpp +++ b/source/glest_game/facilities/game_util.cpp @@ -48,6 +48,10 @@ string getCompilerNameString() { string version = ""; #if defined(WIN32) && defined(_MSC_VER) version = "VC++: " + intToStr(_MSC_VER); + #if defined(DEBUG) || defined(_DEBUG) + version += " [DEBUG]"; + #endif + #elif defined(__GNUC__) #if defined(__GNUC__) # if defined(__GNUC_PATCHLEVEL__) @@ -60,6 +64,10 @@ string getCompilerNameString() { # endif #endif version = "GNUC: " + intToStr(__GNUC_VERSION__); + #if defined(DEBUG) || defined(_DEBUG) + version += " [DEBUG]"; + #endif + #else version = "???"; #endif