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 { |