| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 80 |
| 81 typedef enum { WTFLogChannelOff, WTFLogChannelOn } WTFLogChannelState; | 81 typedef enum { WTFLogChannelOff, WTFLogChannelOn } WTFLogChannelState; |
| 82 | 82 |
| 83 typedef struct { | 83 typedef struct { |
| 84 WTFLogChannelState state; | 84 WTFLogChannelState state; |
| 85 } WTFLogChannel; | 85 } WTFLogChannel; |
| 86 | 86 |
| 87 WTF_EXPORT void WTFReportAssertionFailure(const char* file, int line, const char
* function, const char* assertion); | 87 WTF_EXPORT void WTFReportAssertionFailure(const char* file, int line, const char
* function, const char* assertion); |
| 88 WTF_EXPORT void WTFReportArgumentAssertionFailure(const char* file, int line, co
nst char* function, const char* argName, const char* assertion); | 88 WTF_EXPORT void WTFReportArgumentAssertionFailure(const char* file, int line, co
nst char* function, const char* argName, const char* assertion); |
| 89 WTF_EXPORT void WTFLog(WTFLogChannel*, const char* format, ...) WTF_ATTRIBUTE_PR
INTF(2, 3); | 89 WTF_EXPORT void WTFLog(WTFLogChannel*, const char* format, ...) WTF_ATTRIBUTE_PR
INTF(2, 3); |
| 90 WTF_EXPORT void WTFLogVerbose(const char* file, int line, const char* function,
WTFLogChannel*, const char* format, ...) WTF_ATTRIBUTE_PRINTF(5, 6); | |
| 91 WTF_EXPORT void WTFLogAlways(const char* format, ...) WTF_ATTRIBUTE_PRINTF(1, 2)
; | 90 WTF_EXPORT void WTFLogAlways(const char* format, ...) WTF_ATTRIBUTE_PRINTF(1, 2)
; |
| 92 | 91 |
| 93 WTF_EXPORT void WTFGetBacktrace(void** stack, int* size); | 92 WTF_EXPORT void WTFGetBacktrace(void** stack, int* size); |
| 94 WTF_EXPORT void WTFReportBacktrace(int framesToShow = 31); | 93 WTF_EXPORT void WTFReportBacktrace(int framesToShow = 31); |
| 95 WTF_EXPORT void WTFPrintBacktrace(void** stack, int size); | 94 WTF_EXPORT void WTFPrintBacktrace(void** stack, int size); |
| 96 | 95 |
| 97 /* IMMEDIATE_CRASH() - Like CRASH() below but crashes in the fastest, simplest p
ossible way with no attempt at logging. */ | 96 /* IMMEDIATE_CRASH() - Like CRASH() below but crashes in the fastest, simplest p
ossible way with no attempt at logging. */ |
| 98 #ifndef IMMEDIATE_CRASH | 97 #ifndef IMMEDIATE_CRASH |
| 99 #if COMPILER(GCC) || COMPILER(CLANG) | 98 #if COMPILER(GCC) || COMPILER(CLANG) |
| 100 #define IMMEDIATE_CRASH() __builtin_trap() | 99 #define IMMEDIATE_CRASH() __builtin_trap() |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 } \ | 286 } \ |
| 288 inline const thisType& to##thisType(const argumentType& argumentName) \ | 287 inline const thisType& to##thisType(const argumentType& argumentName) \ |
| 289 { \ | 288 { \ |
| 290 ASSERT_WITH_SECURITY_IMPLICATION(referencePredicate); \ | 289 ASSERT_WITH_SECURITY_IMPLICATION(referencePredicate); \ |
| 291 return static_cast<const thisType&>(argumentName); \ | 290 return static_cast<const thisType&>(argumentName); \ |
| 292 } \ | 291 } \ |
| 293 void to##thisType(const thisType*); \ | 292 void to##thisType(const thisType*); \ |
| 294 void to##thisType(const thisType&) | 293 void to##thisType(const thisType&) |
| 295 | 294 |
| 296 #endif /* WTF_Assertions_h */ | 295 #endif /* WTF_Assertions_h */ |
| OLD | NEW |