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->isAttached()) { debugger->attach(msg); debugger->onFrame(); } } }