Changeset 16177 in webkit for trunk/JavaScriptCore/wtf/Assertions.h
- Timestamp:
- Sep 1, 2006, 1:05:39 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/Assertions.h
r15906 r16177 1 / / -*- mode: c++; c-basic-offset: 4 -*-1 /* -*- mode: c++; c-basic-offset: 4 -*- */ 2 2 /* 3 3 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. … … 28 28 #define KXMLCORE_ASSERTIONS_H 29 29 30 // no namespaces because this file has to be includable from C and Objective-C 30 /* 31 no namespaces because this file has to be includable from C and Objective-C 31 32 32 //Note, this file uses many GCC extensions, but it should be compatible with33 //C, Objective C, C++, and Objective C++.33 Note, this file uses many GCC extensions, but it should be compatible with 34 C, Objective C, C++, and Objective C++. 34 35 35 // For non-debug builds, everything is disabled by default. 36 // Defining any of the symbols explicitly prevents this from having any effect. 36 For non-debug builds, everything is disabled by default. 37 Defining any of the symbols explicitly prevents this from having any effect. 38 */ 37 39 38 40 #include "Platform.h" … … 70 72 #endif 71 73 72 / / These helper functions are always declared, but not necessarily always defined if the corresponding function is disabled.74 /* These helper functions are always declared, but not necessarily always defined if the corresponding function is disabled. */ 73 75 74 76 #ifdef __cplusplus … … 95 97 #endif 96 98 97 / / CRASH -- gets us into the debugger or the crash reporter -- signals are ignored by the crash reporter so we must do better99 /* CRASH -- gets us into the debugger or the crash reporter -- signals are ignored by the crash reporter so we must do better */ 98 100 99 101 #define CRASH() *(int *)(uintptr_t)0xbbadbeef = 0 100 102 101 / / ASSERT, ASSERT_WITH_MESSAGE, ASSERT_NOT_REACHED103 /* ASSERT, ASSERT_WITH_MESSAGE, ASSERT_NOT_REACHED */ 102 104 103 105 #if PLATFORM(WIN_OS) 104 / / FIXME: Change to use something other than ASSERT to avoid this conflict with win32.106 /* FIXME: Change to use something other than ASSERT to avoid this conflict with win32. */ 105 107 #undef ASSERT 106 108 #endif … … 133 135 #endif 134 136 135 / / ASSERT_ARG137 /* ASSERT_ARG */ 136 138 137 139 #if ASSERT_ARG_DISABLED … … 150 152 #endif 151 153 152 / / FATAL154 /* FATAL */ 153 155 154 156 #if FATAL_DISABLED … … 161 163 #endif 162 164 163 / / LOG_ERROR165 /* LOG_ERROR */ 164 166 165 167 #if ERROR_DISABLED … … 169 171 #endif 170 172 171 / / LOG173 /* LOG */ 172 174 173 175 #if LOG_DISABLED
Note:
See TracChangeset
for help on using the changeset viewer.