]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/log.cpp
A couple of identifiers at global level moved to the .cpp file from .h where
[wxWidgets.git] / src / common / log.cpp
index 8708f2debc52375bf1ea4b973f660cea57a454a3..25016cd3256dc86da09813487de84957d6066f57 100644 (file)
@@ -239,7 +239,14 @@ void WXDLLEXPORT wxLogSysError(long lErrCode, const char *szFormat, ...)
 wxLog::wxLog()
 {
   m_bHasMessages = FALSE;
-  m_bVerbose     = FALSE;
+
+  // enable verbose messages by default in the debug builds
+#ifdef __WXDEBUG__
+  m_bVerbose = TRUE;
+#else // release
+  m_bVerbose = FALSE;
+#endif // debug/release
+
   m_szTimeFormat = "[%d/%b/%y %H:%M:%S] ";
 }
 
@@ -986,7 +993,7 @@ void wxOnAssert(const char *szFile, int nLine, const char *szMsg)
 
   // make life easier for people using VC++ IDE: clicking on the message will
   // take us immediately to the place of the failed assert
-#ifdef _MSC_VER
+#ifdef __VISUALC__
   sprintf(szBuf, _("%s(%d): assert failed"), szFile, nLine);
 #else  // !VC++
   // make the error message more clear for all the others