- added version string addition to tell if debug is enabled

This commit is contained in:
Mark Vejvoda
2010-06-21 23:45:49 +00:00
parent 731df7f16e
commit 626fc57ced

View File

@@ -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