]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/log.h
Set initial window size as its minimal size.
[wxWidgets.git] / include / wx / log.h
index c95749977a8217865310716bf11c231c220102c8..3048b3d018bb27b6f46697a319a46512ff6c4c9a 100644 (file)
@@ -1573,5 +1573,14 @@ wxSafeShowMessage(const wxString& title, const wxString& text);
     #undef WX_WATCOM_ONLY_CODE
 #endif
 
+// macro which disables debug logging in release builds: this is done by
+// default by IMPLEMENT_APP() so usually it doesn't need to be used explicitly
+#ifdef NDEBUG
+    #define wxDISABLE_DEBUG_LOGGING_IN_RELEASE_BUILD() \
+        wxLog::SetLogLevel(wxLOG_Info)
+#else // !NDEBUG
+    #define wxDISABLE_DEBUG_LOGGING_IN_RELEASE_BUILD()
+#endif // NDEBUG/!NDEBUG
+
 #endif  // _WX_LOG_H_