// wxWindows
#ifndef WX_PRECOMP
#include "wx/app.h"
+ #include "wx/arrstr.h"
#include "wx/intl.h"
#include "wx/string.h"
#endif //WX_PRECOMP
#include "wx/wxchar.h"
// other standard headers
+#ifndef __WXWINCE__
#include <errno.h>
+#endif
+
#include <stdlib.h>
+
+#ifndef __WXWINCE__
#include <time.h>
+#else
+#include "wx/msw/wince/time.h"
+#endif
#if defined(__WINDOWS__)
#include "wx/msw/private.h" // includes windows.h
wxSafeShowMessage(_T("Fatal Error"), s_szBuf);
+#ifdef __WXWINCE__
+ ExitThread(3);
+#else
abort();
+#endif
}
void wxLogFatalError(const wxChar *szFormat, ...)
DoLogString(wxString(_("Fatal error: ")) + szString, t);
DoLogString(_("Program aborted."), t);
Flush();
+#ifdef __WXWINCE__
+ ExitThread(3);
+#else
abort();
+#endif
break;
case wxLOG_Error:
// nothing to do here
}
+/*static*/ bool wxLog::IsAllowedTraceMask(const wxChar *mask)
+{
+ for ( wxArrayString::iterator it = ms_aTraceMasks.begin(),
+ en = ms_aTraceMasks.end();
+ it != en; ++it )
+ if ( *it == mask)
+ return true;
+ return false;
+}
+
// ----------------------------------------------------------------------------
// wxLogStderr class implementation
// ----------------------------------------------------------------------------