wxLog small fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34106 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -35,6 +35,8 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "wx/log.h"
|
||||||
|
|
||||||
#ifndef NO_GUI
|
#ifndef NO_GUI
|
||||||
#include "wx/timer.h"
|
#include "wx/timer.h"
|
||||||
#include "wx/help.h"
|
#include "wx/help.h"
|
||||||
@@ -1102,18 +1104,19 @@ void OnError(const wxChar *msg)
|
|||||||
wxSTD cerr.flush();
|
wxSTD cerr.flush();
|
||||||
#else
|
#else
|
||||||
if (isInteractive && frame)
|
if (isInteractive && frame)
|
||||||
(*frame->textWindow) << _T("Error: ") << msg << _T("\n");
|
|
||||||
else
|
|
||||||
#ifdef __UNIX__
|
|
||||||
{
|
{
|
||||||
|
(*frame->textWindow) << _T("Error: ") << msg << _T("\n");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
#if defined(__UNIX__)
|
||||||
wxSTD cerr << "Error: " << msg_string.mb_str() << "\n";
|
wxSTD cerr << "Error: " << msg_string.mb_str() << "\n";
|
||||||
wxSTD cerr.flush();
|
wxSTD cerr.flush();
|
||||||
}
|
#elif defined(__WXMSW__)
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __WXMSW__
|
|
||||||
wxLogError(msg);
|
wxLogError(msg);
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
Tex2RTFYield(true);
|
Tex2RTFYield(true);
|
||||||
#endif // NO_GUI
|
#endif // NO_GUI
|
||||||
}
|
}
|
||||||
@@ -1126,23 +1129,19 @@ void OnInform(const wxChar *msg)
|
|||||||
wxSTD cout.flush();
|
wxSTD cout.flush();
|
||||||
#else
|
#else
|
||||||
if (isInteractive && frame)
|
if (isInteractive && frame)
|
||||||
(*frame->textWindow) << msg << _T("\n");
|
|
||||||
/* This whole block of code is just wrong I think. It would behave
|
|
||||||
completely wrong under anything other than MSW due to the ELSE
|
|
||||||
with no statement, and the cout calls would fail under MSW, as
|
|
||||||
the code in this block is compiled if !NO_GUI This code has been
|
|
||||||
here since v1.1 of this file too. - gt
|
|
||||||
else
|
|
||||||
#ifdef __WXMSW__
|
|
||||||
{
|
{
|
||||||
|
(*frame->textWindow) << msg << _T("\n");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
#if defined(__UNIX__)
|
||||||
wxSTD cout << msg_string.mb_str() << "\n";
|
wxSTD cout << msg_string.mb_str() << "\n";
|
||||||
wxSTD cout.flush();
|
wxSTD cout.flush();
|
||||||
|
#elif defined(__WXMSW__)
|
||||||
|
wxLogInfo(msg);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
#ifdef __WXMSW__
|
|
||||||
{}
|
|
||||||
#endif
|
|
||||||
*/
|
|
||||||
if (isInteractive)
|
if (isInteractive)
|
||||||
{
|
{
|
||||||
Tex2RTFYield(true);
|
Tex2RTFYield(true);
|
||||||
|
Reference in New Issue
Block a user