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

Unified Diff: Source/wtf/RefCountedLeakCounter.cpp

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/RefCountedLeakCounter.h ('k') | Source/wtf/SizeLimits.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/RefCountedLeakCounter.cpp
diff --git a/Source/wtf/RefCountedLeakCounter.cpp b/Source/wtf/RefCountedLeakCounter.cpp
index 6c237b3e9d8caabc5e7aa5a75a803c52a54addeb..c14b7cab700038532af5e91b8802add311fc4ba9 100644
--- a/Source/wtf/RefCountedLeakCounter.cpp
+++ b/Source/wtf/RefCountedLeakCounter.cpp
@@ -20,16 +20,16 @@
#include "config.h"
#include "RefCountedLeakCounter.h"
-
-#ifndef NDEBUG
#include "wtf/Assertions.h"
+
+#if ENABLE(ASSERT)
#include "wtf/Atomics.h"
#include "wtf/HashCountedSet.h"
#endif
namespace WTF {
-#ifdef NDEBUG
+#if !ENABLE(ASSERT)
void RefCountedLeakCounter::suppressMessages(const char*) { }
void RefCountedLeakCounter::cancelMessageSuppression(const char*) { }
« no previous file with comments | « Source/wtf/RefCountedLeakCounter.h ('k') | Source/wtf/SizeLimits.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698