Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Side by Side Diff: Source/wtf/Assertions.h

Issue 23187004: Do not include "wtf/Platform.h" directly (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix win_x64 build Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/wtf/Alignment.h ('k') | Source/wtf/Atomics.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 22 matching lines...) Expand all
33 Note, this file uses many GCC extensions, but it should be compatible with 33 Note, this file uses many GCC extensions, but it should be compatible with
34 C, Objective C, C++, and Objective C++. 34 C, Objective C, C++, and Objective C++.
35 35
36 For non-debug builds, everything is disabled by default, except for the 36 For non-debug builds, everything is disabled by default, except for the
37 RELEASE_ASSERT family of macros. 37 RELEASE_ASSERT family of macros.
38 38
39 Defining any of the symbols explicitly prevents this from having any effect. 39 Defining any of the symbols explicitly prevents this from having any effect.
40 40
41 */ 41 */
42 42
43 #include "wtf/Platform.h"
44
45 #include <stddef.h> 43 #include <stddef.h>
46 44
47 #if !COMPILER(MSVC) 45 #if !COMPILER(MSVC)
48 #include <inttypes.h> 46 #include <inttypes.h>
49 #endif 47 #endif
50 48
51 #include "wtf/WTFExport.h" 49 #include "wtf/WTFExport.h"
52 50
53 #ifdef NDEBUG 51 #ifdef NDEBUG
54 /* Disable ASSERT* macros in release mode. */ 52 /* Disable ASSERT* macros in release mode. */
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 #define RELEASE_ASSERT(assertion) (UNLIKELY(!(assertion)) ? (IMMEDIATE_CRASH()) : (void)0) 370 #define RELEASE_ASSERT(assertion) (UNLIKELY(!(assertion)) ? (IMMEDIATE_CRASH()) : (void)0)
373 #define RELEASE_ASSERT_WITH_MESSAGE(assertion, ...) RELEASE_ASSERT(assertion) 371 #define RELEASE_ASSERT_WITH_MESSAGE(assertion, ...) RELEASE_ASSERT(assertion)
374 #define RELEASE_ASSERT_NOT_REACHED() IMMEDIATE_CRASH() 372 #define RELEASE_ASSERT_NOT_REACHED() IMMEDIATE_CRASH()
375 #else 373 #else
376 #define RELEASE_ASSERT(assertion) ASSERT(assertion) 374 #define RELEASE_ASSERT(assertion) ASSERT(assertion)
377 #define RELEASE_ASSERT_WITH_MESSAGE(assertion, ...) ASSERT_WITH_MESSAGE(assertio n, __VA_ARGS__) 375 #define RELEASE_ASSERT_WITH_MESSAGE(assertion, ...) ASSERT_WITH_MESSAGE(assertio n, __VA_ARGS__)
378 #define RELEASE_ASSERT_NOT_REACHED() ASSERT_NOT_REACHED() 376 #define RELEASE_ASSERT_NOT_REACHED() ASSERT_NOT_REACHED()
379 #endif 377 #endif
380 378
381 #endif /* WTF_Assertions_h */ 379 #endif /* WTF_Assertions_h */
OLDNEW
« no previous file with comments | « Source/wtf/Alignment.h ('k') | Source/wtf/Atomics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698