OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. |
3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 WTF_EXPORT void WTFReportAssertionFailure(const char* file, int line, const char
* function, const char* assertion); | 109 WTF_EXPORT void WTFReportAssertionFailure(const char* file, int line, const char
* function, const char* assertion); |
110 WTF_EXPORT void WTFReportAssertionFailureWithMessage(const char* file, int line,
const char* function, const char* assertion, const char* format, ...) WTF_ATTRI
BUTE_PRINTF(5, 6); | 110 WTF_EXPORT void WTFReportAssertionFailureWithMessage(const char* file, int line,
const char* function, const char* assertion, const char* format, ...) WTF_ATTRI
BUTE_PRINTF(5, 6); |
111 WTF_EXPORT void WTFReportArgumentAssertionFailure(const char* file, int line, co
nst char* function, const char* argName, const char* assertion); | 111 WTF_EXPORT void WTFReportArgumentAssertionFailure(const char* file, int line, co
nst char* function, const char* argName, const char* assertion); |
112 WTF_EXPORT void WTFReportFatalError(const char* file, int line, const char* func
tion, const char* format, ...) WTF_ATTRIBUTE_PRINTF(4, 5); | 112 WTF_EXPORT void WTFReportFatalError(const char* file, int line, const char* func
tion, const char* format, ...) WTF_ATTRIBUTE_PRINTF(4, 5); |
113 WTF_EXPORT void WTFReportError(const char* file, int line, const char* function,
const char* format, ...) WTF_ATTRIBUTE_PRINTF(4, 5); | 113 WTF_EXPORT void WTFReportError(const char* file, int line, const char* function,
const char* format, ...) WTF_ATTRIBUTE_PRINTF(4, 5); |
114 WTF_EXPORT void WTFLog(WTFLogChannel*, const char* format, ...) WTF_ATTRIBUTE_PR
INTF(2, 3); | 114 WTF_EXPORT void WTFLog(WTFLogChannel*, const char* format, ...) WTF_ATTRIBUTE_PR
INTF(2, 3); |
115 WTF_EXPORT void WTFLogVerbose(const char* file, int line, const char* function,
WTFLogChannel*, const char* format, ...) WTF_ATTRIBUTE_PRINTF(5, 6); | 115 WTF_EXPORT void WTFLogVerbose(const char* file, int line, const char* function,
WTFLogChannel*, const char* format, ...) WTF_ATTRIBUTE_PRINTF(5, 6); |
116 WTF_EXPORT void WTFLogAlways(const char* format, ...) WTF_ATTRIBUTE_PRINTF(1, 2)
; | 116 WTF_EXPORT void WTFLogAlways(const char* format, ...) WTF_ATTRIBUTE_PRINTF(1, 2)
; |
117 | 117 |
118 WTF_EXPORT void WTFGetBacktrace(void** stack, int* size); | 118 WTF_EXPORT void WTFGetBacktrace(void** stack, int* size); |
119 WTF_EXPORT void WTFReportBacktrace(); | 119 WTF_EXPORT void WTFReportBacktrace(int framesToShow = 31); |
120 WTF_EXPORT void WTFPrintBacktrace(void** stack, int size); | 120 WTF_EXPORT void WTFPrintBacktrace(void** stack, int size); |
121 | 121 |
122 typedef void (*WTFCrashHookFunction)(); | 122 typedef void (*WTFCrashHookFunction)(); |
123 WTF_EXPORT void WTFSetCrashHook(WTFCrashHookFunction); | 123 WTF_EXPORT void WTFSetCrashHook(WTFCrashHookFunction); |
124 WTF_EXPORT void WTFInvokeCrashHook(); | 124 WTF_EXPORT void WTFInvokeCrashHook(); |
125 WTF_EXPORT void WTFInstallReportBacktraceOnCrashHook(); | 125 WTF_EXPORT void WTFInstallReportBacktraceOnCrashHook(); |
126 | 126 |
127 #ifdef __cplusplus | 127 #ifdef __cplusplus |
128 } | 128 } |
129 #endif | 129 #endif |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 #define RELEASE_ASSERT(assertion) (UNLIKELY(!(assertion)) ? (IMMEDIATE_CRASH())
: (void)0) | 364 #define RELEASE_ASSERT(assertion) (UNLIKELY(!(assertion)) ? (IMMEDIATE_CRASH())
: (void)0) |
365 #define RELEASE_ASSERT_WITH_MESSAGE(assertion, ...) RELEASE_ASSERT(assertion) | 365 #define RELEASE_ASSERT_WITH_MESSAGE(assertion, ...) RELEASE_ASSERT(assertion) |
366 #define RELEASE_ASSERT_NOT_REACHED() IMMEDIATE_CRASH() | 366 #define RELEASE_ASSERT_NOT_REACHED() IMMEDIATE_CRASH() |
367 #else | 367 #else |
368 #define RELEASE_ASSERT(assertion) ASSERT(assertion) | 368 #define RELEASE_ASSERT(assertion) ASSERT(assertion) |
369 #define RELEASE_ASSERT_WITH_MESSAGE(assertion, ...) ASSERT_WITH_MESSAGE(assertio
n, __VA_ARGS__) | 369 #define RELEASE_ASSERT_WITH_MESSAGE(assertion, ...) ASSERT_WITH_MESSAGE(assertio
n, __VA_ARGS__) |
370 #define RELEASE_ASSERT_NOT_REACHED() ASSERT_NOT_REACHED() | 370 #define RELEASE_ASSERT_NOT_REACHED() ASSERT_NOT_REACHED() |
371 #endif | 371 #endif |
372 | 372 |
373 #endif /* WTF_Assertions_h */ | 373 #endif /* WTF_Assertions_h */ |
OLD | NEW |