git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59730
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/dynarray.h"
#ifndef wxUSE_LOG_DEBUG
#include "wx/dynarray.h"
#ifndef wxUSE_LOG_DEBUG
-# ifdef __WXDEBUG__
-# define wxUSE_LOG_DEBUG 1
-# else // !__WXDEBUG__
-# define wxUSE_LOG_DEBUG 0
-# endif
+ #if wxDEBUG_LEVEL
+ #define wxUSE_LOG_DEBUG 1
+ #else // !wxDEBUG_LEVEL
+ #define wxUSE_LOG_DEBUG 0
+ #endif
#endif
// ----------------------------------------------------------------------------
#endif
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
#if wxUSE_GUI
// ----------------------------------------------------------------------------
#if wxUSE_GUI
+ class WXDLLIMPEXP_FWD_CORE wxFrame;
class WXDLLIMPEXP_FWD_CORE wxTextCtrl;
class WXDLLIMPEXP_FWD_CORE wxLogFrame;
class WXDLLIMPEXP_FWD_CORE wxTextCtrl;
class WXDLLIMPEXP_FWD_CORE wxLogFrame;
- class WXDLLIMPEXP_FWD_CORE wxFrame;
class WXDLLIMPEXP_FWD_CORE wxWindow;
#endif // wxUSE_GUI
class WXDLLIMPEXP_FWD_CORE wxWindow;
#endif // wxUSE_GUI
// debug only logging functions: use them with API name and error code
// ----------------------------------------------------------------------------
// debug only logging functions: use them with API name and error code
// ----------------------------------------------------------------------------
// make life easier for people using VC++ IDE: clicking on the message
// will take us immediately to the place of the failed API
#ifdef __VISUALC__
// make life easier for people using VC++ IDE: clicking on the message
// will take us immediately to the place of the failed API
#ifdef __VISUALC__
#define wxLogLastError(api) wxLogApiError(api, wxSysErrorCode())
#define wxLogLastError(api) wxLogApiError(api, wxSysErrorCode())
+#else // !wxUSE_LOG_DEBUG
#define wxLogApiError(api, err) wxLogNop()
#define wxLogLastError(api) wxLogNop()
#define wxLogApiError(api, err) wxLogNop()
#define wxLogLastError(api) wxLogNop()
+#endif // wxUSE_LOG_DEBUG/!wxUSE_LOG_DEBUG
// wxCocoa has additiional trace masks
#if defined(__WXCOCOA__)
// wxCocoa has additiional trace masks
#if defined(__WXCOCOA__)