1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
#include "rar.hpp"
void InitLogOptions(const std::wstring &LogFileName,RAR_CHARSET CSet)
{
}
void CloseLogOptions()
{
}
#ifndef SILENT
void Log(const wchar *ArcName,const wchar *fmt,...)
{
// Preserve the error code for possible following system error message.
int Code=ErrHandler.GetSystemErrorCode();
uiAlarm(UIALARM_ERROR);
va_list arglist;
va_start(arglist,fmt);
std::wstring s=vwstrprintf(fmt,arglist);
ReplaceEsc(s);
va_end(arglist);
eprintf(L"%ls",s.c_str());
ErrHandler.SetSystemErrorCode(Code);
}
#endif
|