Go to the documentation of this file.
23 #ifndef _BASE_WX_WXUTILS_H
24 #define _BASE_WX_WXUTILS_H
31 #include <wx/string.h>
42 #define DEBUG_TRACE(msg) { std::cerr << "TRACE " << DEBUG_HEADER << msg << std::endl; }
45 #define DEBUG_DEBUG(msg) { std::cerr << "DEBUG " << DEBUG_HEADER << msg << std::endl; }
48 #define DEBUG_INFO(msg) { std::cerr << "INFO " << DEBUG_HEADER << msg << std::endl; }
51 #define DEBUG_NOTICE(msg) { std::cerr << "NOTICE " << DEBUG_HEADER << msg << std::endl; }
60 #define DEBUG_WARN(msg) { std::stringstream o; o << "WARN: " << DEBUG_HEADER << msg; wxLogWarning(wxString(o.str().c_str(), wxConvISO8859_1));}
62 #define DEBUG_ERROR(msg) { std::stringstream o; o << "ERROR: " << DEBUG_HEADER << msg; wxLogError(wxString(o.str().c_str(),wxConvISO8859_1));}
64 #define DEBUG_FATAL(msg) { std::stringstream o; o << "FATAL: " << DEBUG_HEADER << "(): " << msg; wxLogError(wxString(o.str().c_str(),wxConvISO8859_1)); }
66 #define DEBUG_ASSERT(cond) \
69 std::stringstream o; o << "ASSERTATION: " << DEBUG_HEADER << "(): " << #cond; \
70 wxLogFatalError(wxString(o.str().c_str(),wxConvISO8859_1)); \
76 #endif // _BASE_WX_WXUTILS_H