MCPcopy Create free account
hub / github.com/LibreVR/Revive / myMessageOutput

Function myMessageOutput

ReviveOverlay/main.cpp:27–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25QFile* g_LogFile = nullptr;
26
27void myMessageOutput(QtMsgType type, const QMessageLogContext &context, const QString &msg)
28{
29 Q_UNUSED(context);
30 QByteArray localMsg = msg.toLocal8Bit();
31 QTextStream log(g_LogFile);
32 log << localMsg.constData() << "\n";
33 OutputDebugStringA(localMsg.constData());
34 OutputDebugStringA("\n");
35
36 if (type == QtFatalMsg)
37 abort();
38}
39
40int main(int argc, char *argv[])
41{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected