~aacid/unity-2d/unity-2d-shell_shape_bounding_shape_input

« back to all changes in this revision

Viewing changes to config.h.in

[dash & spread & panel & launcher] Set applicationName and prepend it to all debug output.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
        return QString(QCoreApplication::applicationDirPath()+"/../");
25
25
    }
26
26
}
 
27
 
 
28
inline void globalMessageHandler(QtMsgType type, const char *message)
 
29
{
 
30
    switch (type) {
 
31
        case QtDebugMsg:
 
32
            fprintf(stderr, "%s: [DEBUG] %s\n", qPrintable(QCoreApplication::applicationName()), message);
 
33
            break;
 
34
        case QtWarningMsg:
 
35
            fprintf(stderr, "%s: [WARNING] %s\n", qPrintable(QCoreApplication::applicationName()), message);
 
36
            break;
 
37
        case QtCriticalMsg:
 
38
            fprintf(stderr, "%s: [CRITICAL] %s\n", qPrintable(QCoreApplication::applicationName()), message);
 
39
            break;
 
40
        case QtFatalMsg:
 
41
            fprintf(stderr, "%s: [FATAL] %s\n", qPrintable(QCoreApplication::applicationName()), message);
 
42
            abort();
 
43
    }
 
44
}