X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14ff7a5992895f774b894adeaa6153de00403258..342a2719e0659ff621ad57111e1d81fd8332b1eb:/src/common/log.cpp?ds=sidebyside diff --git a/src/common/log.cpp b/src/common/log.cpp index a42d6aaf89..69abd5e0ba 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -91,7 +91,7 @@ void wxVLogGeneric(wxLogLevel level, const wxChar *szFormat, va_list argptr) } } -void wxLogGeneric(wxLogLevel level, const wxChar *szFormat, ...) +void wxDoLogGeneric(wxLogLevel level, const wxChar *szFormat, ...) { va_list argptr; va_start(argptr, szFormat); @@ -108,7 +108,7 @@ void wxLogGeneric(wxLogLevel level, const wxChar *szFormat, ...) } \ } \ \ - void wxLog##level(const wxChar *szFormat, ...) \ + void wxDoLog##level(const wxChar *szFormat, ...) \ { \ va_list argptr; \ va_start(argptr, szFormat); \ @@ -145,7 +145,7 @@ void wxVLogFatalError(const wxChar *szFormat, va_list argptr) #endif } -void wxLogFatalError(const wxChar *szFormat, ...) +void wxDoLogFatalError(const wxChar *szFormat, ...) { va_list argptr; va_start(argptr, szFormat); @@ -167,7 +167,7 @@ void wxVLogVerbose(const wxChar *szFormat, va_list argptr) } } -void wxLogVerbose(const wxChar *szFormat, ...) +void wxDoLogVerbose(const wxChar *szFormat, ...) { va_list argptr; va_start(argptr, szFormat); @@ -186,7 +186,7 @@ void wxLogVerbose(const wxChar *szFormat, ...) } \ } \ \ - void wxLog##level(const wxChar *szFormat, ...) \ + void wxDoLog##level(const wxChar *szFormat, ...) \ { \ va_list argptr; \ va_start(argptr, szFormat); \ @@ -199,12 +199,12 @@ void wxLogVerbose(const wxChar *szFormat, ...) if ( wxLog::IsEnabled() && wxLog::IsAllowedTraceMask(mask) ) { wxString msg; msg << _T("(") << mask << _T(") ") << wxString::FormatV(szFormat, argptr); - + wxLog::OnLog(wxLOG_Trace, msg, time(NULL)); } } - void wxLogTrace(const wxChar *mask, const wxChar *szFormat, ...) + void wxDoLogTrace(const wxChar *mask, const wxChar *szFormat, ...) { va_list argptr; va_start(argptr, szFormat); @@ -222,7 +222,7 @@ void wxLogVerbose(const wxChar *szFormat, ...) } } - void wxLogTrace(wxTraceMask mask, const wxChar *szFormat, ...) + void wxDoLogTrace(wxTraceMask mask, const wxChar *szFormat, ...) { va_list argptr; va_start(argptr, szFormat); @@ -251,7 +251,7 @@ void WXDLLEXPORT wxVLogSysError(const wxChar *szFormat, va_list argptr) wxVLogSysError(wxSysErrorCode(), szFormat, argptr); } -void WXDLLEXPORT wxLogSysError(const wxChar *szFormat, ...) +void WXDLLEXPORT wxDoLogSysError(const wxChar *szFormat, ...) { va_list argptr; va_start(argptr, szFormat); @@ -268,7 +268,7 @@ void WXDLLEXPORT wxVLogSysError(long err, const wxChar *fmt, va_list argptr) } } -void WXDLLEXPORT wxLogSysError(long lErrCode, const wxChar *szFormat, ...) +void WXDLLEXPORT wxDoLogSysError(long lErrCode, const wxChar *szFormat, ...) { va_list argptr; va_start(argptr, szFormat); @@ -329,7 +329,7 @@ void wxLog::OnLog(wxLogLevel level, const wxChar *szString, time_t t) { if ( GetRepetitionCounting() ) { - pLogger->DoLogNumberOfRepeats(); + DoLogNumberOfRepeats(); } ms_prevString = szString; ms_prevLevel = level;