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

Unified Diff: webrtc/base/common.h

Issue 1410113007: Update webrtc/base/common.h after recent _DEBUG->!NDEBUG change. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/common.h
diff --git a/webrtc/base/common.h b/webrtc/base/common.h
index e615c7669a40bd7e762e13c2cf55f4009464a78a..67665f2d4c6eca6a52702205d9451eda861b6a83 100644
--- a/webrtc/base/common.h
+++ b/webrtc/base/common.h
@@ -61,7 +61,11 @@ inline void RtcUnused(const void*) {}
/////////////////////////////////////////////////////////////////////////////
#ifndef ENABLE_DEBUG
-#define ENABLE_DEBUG _DEBUG
+#if !defined(NDEBUG)
tfarina 2015/10/31 21:33:38 LGTM
+#define ENABLE_DEBUG 1
+#else
+#define ENABLE_DEBUG 0
+#endif
#endif // !defined(ENABLE_DEBUG)
// Even for release builds, allow for the override of LogAssert. Though no
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698