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

Unified Diff: Source/wtf/ThreadRestrictionVerifier.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/StringHasher.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/ThreadRestrictionVerifier.h
diff --git a/Source/wtf/ThreadRestrictionVerifier.h b/Source/wtf/ThreadRestrictionVerifier.h
index 3204bad53d8d42cdd01d75d3453eca2b4529cb66..e62261ca7429c3b954d8402fcfb28242e6821a0e 100644
--- a/Source/wtf/ThreadRestrictionVerifier.h
+++ b/Source/wtf/ThreadRestrictionVerifier.h
@@ -53,7 +53,7 @@ public:
// Indicates that the object may (or may not) be owned by more than one place.
void setShared(bool shared)
{
-#if !ASSERT_DISABLED
+#if ASSERT_ENABLED
bool previouslyShared = m_shared;
#endif
m_shared = shared;
« no previous file with comments | « Source/wtf/StringHasher.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698