Пример #1
0
bool reportTrueReal(const bool val,
                    const char *const text,
                    const char *const file,
                    const unsigned line,
                    const char *const func)
{
    if (val)
        reportStack(file, line, func, "Detected true value", text);
    return val;
}
Пример #2
0
void reportLogStack(const char *const file,
                    const unsigned int line,
                    const char *const func)
{
    logger->assertLog("%s:%u: in function `%s'",
        file,
        line,
        func);
#ifdef HAVE_EXECINFO
    reportStack();
#endif  // HAVE_EXECINFO
}
Пример #3
0
void reportAssertStack(const char *const file,
                       const unsigned int line,
                       const char *const func,
                       const char *const name,
                       const char *const text)
{
    logger->log("--- Assert: %s --------------------------------------------",
        name);
    logger->assertLog("%s:%u: '%s' in function `%s'",
        file,
        line,
        text,
        func);
#ifdef HAVE_EXECINFO
    reportStack();
#endif  // HAVE_EXECINFO
}