void WTFReportAssertionFailure(const char* file, int line, const char* function, const char* assertion) { if (assertion) printf_stderr_common("ASSERTION FAILED: %s\n", assertion); else printf_stderr_common("SHOULD NEVER BE REACHED\n"); printCallSite(file, line, function); }
void WTFReportArgumentAssertionFailure(const char* file, int line, const char* function, const char* argName, const char* assertion) { printf_stderr_common("ARGUMENT BAD: %s, %s\n", argName, assertion); printCallSite(file, line, function); }
void WTFReportError(const char* file, int line, const char* function, const char* format, ...) { va_list args; va_start(args, format); vprintf_stderr_with_prefix("ERROR: ", format, args); va_end(args); printf_stderr_common("\n"); printCallSite(file, line, function); }
void WTFReportAssertionFailureWithMessage(const char* file, int line, const char* function, const char* assertion, const char* format, ...) { va_list args; va_start(args, format); vprintf_stderr_with_prefix("ASSERTION FAILED: ", format, args); va_end(args); printf_stderr_common("\n%s\n", assertion); printCallSite(file, line, function); }
void WTFReportFatalError(const char* file, int line, const char* function, const char* format, ...) { printf_stderr_common("FATAL ERROR: "); va_list args; va_start(args, format); vprintf_stderr_common(format, args); va_end(args); printf_stderr_common("\n"); printCallSite(file, line, function); }
void WTFReportAssertionFailureWithMessage(const char* file, int line, const char* function, const char* assertion, const char* format, ...) { printf_stderr_common("Assertion failure: "); va_list args; va_start(args, format); vprintf_stderr_common(format, args); va_end(args); printf_stderr_common("\n%s\n", assertion); printCallSite(file, line, function); }
void WTFLogVerbose(const char* file, int line, const char* function, WTFLogChannel* channel, const char* format, ...) { if (channel->state != WTFLogChannelOn) return; va_list args; va_start(args, format); vprintf_stderr_with_trailing_newline(format, args); va_end(args); printCallSite(file, line, function); }
void WTFLogVerbose(const char* file, int line, const char* function, WTFLogChannel* channel, const char* format, ...) { if (channel->state != WTFLogChannelOn) return; va_list args; va_start(args, format); vprintf_stderr_common(format, args); va_end(args); if (format[strlen(format) - 1] != '\n') printf_stderr_common("\n"); printCallSite(file, line, function); }
void WTFLogVerbose(const char* file, int line, const char* function, WTFLogChannel* channel, const char* format, ...) { if (channel->state != WTFLogChannelOn) return; va_list args; va_start(args, format); #if COMPILER(CLANG) #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wformat-nonliteral" #endif WTFLog(channel, format, args); #if COMPILER(CLANG) #pragma clang diagnostic pop #endif va_end(args); printCallSite(file, line, function); }
void ReportBrollyionFailureWithMessage(const char* file, int line, const char* function, const char *message) { printf_stderr_common("ASSERTION FAILED: %s\n", message); printCallSite(file, line, function); }