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

Unified Diff: Source/wtf/BloomFilter.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/wtf/Assertions.h ('k') | Source/wtf/DateMath.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/BloomFilter.h
diff --git a/Source/wtf/BloomFilter.h b/Source/wtf/BloomFilter.h
index 72f4d66df032c5192b3ff115d11b25aeec095fa3..eed43d509be780c330a6bf017f6cc8f217a44516 100644
--- a/Source/wtf/BloomFilter.h
+++ b/Source/wtf/BloomFilter.h
@@ -64,7 +64,7 @@ public:
bool mayContain(const AtomicString& string) const { return mayContain(string.impl()->existingHash()); }
bool mayContain(const String& string) const { return mayContain(string.impl()->hash()); }
-#if !ASSERT_DISABLED
+#if ASSERT_ENABLED
// Slow.
bool likelyEmpty() const;
bool isClear() const;
@@ -110,7 +110,7 @@ inline void BloomFilter<keyBits>::clear()
memset(m_table, 0, tableSize);
}
-#if !ASSERT_DISABLED
+#if ASSERT_ENABLED
template <unsigned keyBits>
bool BloomFilter<keyBits>::likelyEmpty() const
{
« no previous file with comments | « Source/wtf/Assertions.h ('k') | Source/wtf/DateMath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698