Changeset 26589 in webkit for trunk/JavaScriptCore/wtf/Assertions.h
- Timestamp:
- Oct 14, 2007, 4:55:02 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/Assertions.h
r21906 r26589 36 36 For non-debug builds, everything is disabled by default. 37 37 Defining any of the symbols explicitly prevents this from having any effect. 38 39 MSVC7 note: variadic macro support was added in MSVC8, so for now we disable 40 those macros in MSVC7. For more info, see the MSDN document on variadic 41 macros here: 42 43 http://msdn2.microsoft.com/en-us/library/ms177415(VS.80).aspx 38 44 */ 39 45 … … 131 137 } \ 132 138 while (0) 139 #if COMPILER(MSVC7) 140 #define ASSERT_WITH_MESSAGE(assertion) ((void)0) 141 #else 133 142 #define ASSERT_WITH_MESSAGE(assertion, ...) do \ 134 143 if (!(assertion)) { \ … … 137 146 } \ 138 147 while (0) 148 #endif // COMPILER(MSVC7) 139 149 #define ASSERT_NOT_REACHED() do { \ 140 150 WTFReportAssertionFailure(__FILE__, __LINE__, WTF_PRETTY_FUNCTION, 0); \ … … 170 180 #if FATAL_DISABLED 171 181 #define FATAL(...) ((void)0) 182 #elif COMPILER(MSVC7) 183 #define FATAL() ((void)0) 172 184 #else 173 185 #define FATAL(...) do { \ … … 181 193 #if ERROR_DISABLED 182 194 #define LOG_ERROR(...) ((void)0) 195 #elif COMPILER(MSVC7) 196 #define LOG_ERROR() ((void)0) 183 197 #else 184 198 #define LOG_ERROR(...) WTFReportError(__FILE__, __LINE__, WTF_PRETTY_FUNCTION, __VA_ARGS__) … … 189 203 #if LOG_DISABLED 190 204 #define LOG(channel, ...) ((void)0) 205 #elif COMPILER(MSVC7) 206 #define LOG() ((void)0) 191 207 #else 192 208 #define LOG(channel, ...) WTFLog(&JOIN_LOG_CHANNEL_WITH_PREFIX(LOG_CHANNEL_PREFIX, channel), __VA_ARGS__) … … 199 215 #if LOG_DISABLED 200 216 #define LOG_VERBOSE(channel, ...) ((void)0) 217 #elif COMPILER(MSVC7) 218 #define LOG_VERBOSE(channel) ((void)0) 201 219 #else 202 220 #define LOG_VERBOSE(channel, ...) WTFLogVerbose(__FILE__, __LINE__, WTF_PRETTY_FUNCTION, &JOIN_LOG_CHANNEL_WITH_PREFIX(LOG_CHANNEL_PREFIX, channel), __VA_ARGS__)
Note:
See TracChangeset
for help on using the changeset viewer.