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

Unified Diff: Source/wtf/RefCountedLeakCounter.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/RefCounted.h ('k') | Source/wtf/RefCountedLeakCounter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/RefCountedLeakCounter.h
diff --git a/Source/wtf/RefCountedLeakCounter.h b/Source/wtf/RefCountedLeakCounter.h
index 8e42c7c5b09ab0dd968fd8b835b86f979478ed49..2284dd7f9999412b2828eb8f11d2c97eabfec476 100644
--- a/Source/wtf/RefCountedLeakCounter.h
+++ b/Source/wtf/RefCountedLeakCounter.h
@@ -21,6 +21,7 @@
#ifndef RefCountedLeakCounter_h
#define RefCountedLeakCounter_h
+#include "wtf/Assertions.h"
#include "wtf/WTFExport.h"
namespace WTF {
@@ -35,7 +36,7 @@ namespace WTF {
void increment();
void decrement();
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
private:
volatile int m_count;
const char* m_description;
« no previous file with comments | « Source/wtf/RefCounted.h ('k') | Source/wtf/RefCountedLeakCounter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698