Logging in debug and release builds
Armel Asselin
armelasselin at hotmail.com
Thu Aug 10 09:39:10 PDT 2006
> inline void wxVLogDebug(const wxChar *, va_list) { }
> inline void wxLogDebug(const wxChar *, ...) { }
> inline void wxVLogTrace(wxTraceMask, const wxChar *, va_list) { }
> inline void wxLogTrace(wxTraceMask, const wxChar *, ...) { }
> inline void wxVLogTrace(const wxChar *, const wxChar *, va_list) { }
> inline void wxLogTrace(const wxChar *, const wxChar *, ...) { }
just as a note, such functions are really not at all like empty macro
definitions because their _arguments_ will be evaluted, even in release
build, and unless these arguments are inlined and/or trivial they won't be
optimized out.
Armel
More information about the wx-users
mailing list