本文整理汇总了C++中printCallSite函数的典型用法代码示例。如果您正苦于以下问题:C++ printCallSite函数的具体用法?C++ printCallSite怎么用?C++ printCallSite使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了printCallSite函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: WTFReportAssertionFailure
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);
}
示例2: WTFReportArgumentAssertionFailure
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);
}
示例3: WTFReportError
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);
}
示例4: WTFReportAssertionFailureWithMessage
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);
}
示例5: WTFReportFatalError
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);
}
示例6: WTFReportAssertionFailureWithMessage
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);
}
示例7: WTFLogVerbose
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);
}
示例8: WTFLogVerbose
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);
}
示例9: WTFLogVerbose
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);
}
示例10: ReportBrollyionFailureWithMessage
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);
}