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

Unified Diff: Source/wtf/RefCounted.h

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased. Created 6 years, 5 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/RawPtr.h ('k') | Source/wtf/RefCountedLeakCounter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/RefCounted.h
diff --git a/Source/wtf/RefCounted.h b/Source/wtf/RefCounted.h
index 9f2a6e83efc5d49f7e6e79913fcc9eb0e42ba57b..823cc064d17ece4ddb0f6765492a63fc462470dd 100644
--- a/Source/wtf/RefCounted.h
+++ b/Source/wtf/RefCounted.h
@@ -21,17 +21,17 @@
#ifndef RefCounted_h
#define RefCounted_h
+#include "wtf/Assertions.h"
#include "wtf/FastAllocBase.h"
#include "wtf/InstanceCounter.h"
#include "wtf/Noncopyable.h"
#include "wtf/WTFExport.h"
-#ifdef NDEBUG
-#define CHECK_REF_COUNTED_LIFECYCLE 0
-#else
+#if ENABLE(ASSERT)
#define CHECK_REF_COUNTED_LIFECYCLE 1
-#include "wtf/Assertions.h"
#include "wtf/ThreadRestrictionVerifier.h"
+#else
+#define CHECK_REF_COUNTED_LIFECYCLE 0
#endif
namespace WTF {
« no previous file with comments | « Source/wtf/RawPtr.h ('k') | Source/wtf/RefCountedLeakCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698