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

Unified Diff: Source/wtf/StringHasher.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/DateMath.cpp ('k') | Source/wtf/ThreadRestrictionVerifier.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/StringHasher.h
diff --git a/Source/wtf/StringHasher.h b/Source/wtf/StringHasher.h
index da338cd1161cbb71214cc9f1a5610a2df57554ba..7c0f92a0f7aa85e5b157d2c16c4890af2923da03 100644
--- a/Source/wtf/StringHasher.h
+++ b/Source/wtf/StringHasher.h
@@ -74,12 +74,12 @@ public:
void addCharacters(UChar a, UChar b)
{
if (m_hasPendingCharacter) {
-#if !ASSERT_DISABLED
+#if ASSERT_ENABLED
m_hasPendingCharacter = false;
#endif
addCharactersAssumingAligned(m_pendingCharacter, a);
m_pendingCharacter = b;
-#if !ASSERT_DISABLED
+#if ASSERT_ENABLED
m_hasPendingCharacter = true;
#endif
return;
« no previous file with comments | « Source/wtf/DateMath.cpp ('k') | Source/wtf/ThreadRestrictionVerifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698