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

Unified Diff: Source/wtf/Assertions.h

Issue 216313002: Introduce ASSERT_ENABLED macro. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/TreeShared.h ('k') | Source/wtf/BloomFilter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/Assertions.h
diff --git a/Source/wtf/Assertions.h b/Source/wtf/Assertions.h
index 8f7f2aeaf44d8bc26a1538fc04a1ce0c58726681..73fc317c6c5c2880275b8cc3bc2aa777acae5fc9 100644
--- a/Source/wtf/Assertions.h
+++ b/Source/wtf/Assertions.h
@@ -57,6 +57,7 @@
#ifndef ASSERT_DISABLED
#define ASSERT_DISABLED ASSERTIONS_DISABLED_DEFAULT
#endif
+#define ASSERT_ENABLED !ASSERT_DISABLED
#ifndef ASSERT_MSG_DISABLED
#define ASSERT_MSG_DISABLED ASSERTIONS_DISABLED_DEFAULT
@@ -237,7 +238,7 @@ WTF_EXPORT void WTFInstallReportBacktraceOnCrashHook();
#endif
-#if defined(ADDRESS_SANITIZER) || !ASSERT_DISABLED
+#if defined(ADDRESS_SANITIZER) || ASSERT_ENABLED
#define SECURITY_ASSERT_ENABLED 1
#else
#define SECURITY_ASSERT_ENABLED 0
« no previous file with comments | « Source/core/dom/TreeShared.h ('k') | Source/wtf/BloomFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698