static void defaultErrorHandler(const char *msg) { // Unless this error -originated- within the debugger itself, we // now invoke the debugger, if available / supported. if (g_engine) { GUI::Debugger *debugger = g_engine->getDebugger(); #ifdef _WIN32_WCE if (isSmartphone()) debugger = 0; #endif #if defined(USE_TASKBAR) g_system->getTaskbarManager()->notifyError(); #endif if (debugger && !debugger->isActive()) { debugger->attach(msg); debugger->onFrame(); } #if defined(USE_TASKBAR) g_system->getTaskbarManager()->clearError(); #endif } }
static void defaultErrorHandler(const char *msg) { // Unless this error -originated- within the debugger itself, we // now invoke the debugger, if available / supported. if (g_engine) { GUI::Debugger *debugger = g_engine->getDebugger(); #ifdef _WIN32_WCE if (isSmartphone()) debugger = 0; #endif if (debugger && !debugger->isActive()) { debugger->attach(msg); debugger->onFrame(); } } }