wxLogDebug/Trace in release mode now don't give compiler warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@250 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -294,8 +294,10 @@ void WXDLLEXPORT wxLogSysError(long lErrCode, wxTString strFormat, ...);
|
|||||||
extern void WXDLLEXPORT wxLogTrace(wxTraceMask mask,
|
extern void WXDLLEXPORT wxLogTrace(wxTraceMask mask,
|
||||||
const char *szFormat, ...);
|
const char *szFormat, ...);
|
||||||
#else //!debug
|
#else //!debug
|
||||||
#define wxLogDebug
|
// these functions do nothing
|
||||||
#define wxLogTrace
|
inline void wxLogDebug(const char *, ...) { }
|
||||||
|
inline void wxLogTrace(const char *, ...) { }
|
||||||
|
inline void wxLogTrace(wxTraceMask, const char *, ...) { }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -328,8 +330,8 @@ const char* WXDLLEXPORT wxSysErrorMsg(unsigned long nErrCode = 0);
|
|||||||
rc, wxSysErrorMsg(rc))
|
rc, wxSysErrorMsg(rc))
|
||||||
#define wxLogLastError(api) wxLogApiError(api, wxSysErrorCode())
|
#define wxLogLastError(api) wxLogApiError(api, wxSysErrorCode())
|
||||||
#else //!debug
|
#else //!debug
|
||||||
#define wxLogApiError(api, rc)
|
inline void wxLogApiError(const char *, long) { }
|
||||||
#define wxLogLastError(api)
|
inline void wxLogLastErrror(const char *) { }
|
||||||
#endif //debug/!debug
|
#endif //debug/!debug
|
||||||
|
|
||||||
#endif //__LOGH__
|
#endif //__LOGH__
|
||||||
|
Reference in New Issue
Block a user