示例#1
0
文件: Logging.cpp 项目: npapier/vgsdk
void Logging::logWarning( const char *szFormat, ... ) const
{
	wxLog *pLogBak = wxLog::SetActiveTarget(m_pLogger);

	va_list marker;
	va_start( marker, szFormat );

	wxVLogWarning( wxConvertMB2WX(szFormat), marker );

	va_end( marker );

	wxLog::SetActiveTarget(pLogBak);
}
示例#2
0
文件: imagtiff.cpp 项目: Ailick/rpcs3
static void
TIFFwxWarningHandler(const char* module,
                     const char* WXUNUSED_IN_UNICODE(fmt),
                     va_list WXUNUSED_IN_UNICODE(ap))
{
    if (module != NULL)
        wxLogWarning(_("tiff module: %s"), wxString::FromAscii(module).c_str());

    // FIXME: this is not terrible informative but better than crashing!
#if wxUSE_UNICODE
    wxLogWarning(_("TIFF library warning."));
#else
    wxVLogWarning(fmt, ap);
#endif
}