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

Unified Diff: base/logging.h

Issue 2163023002: Unify usage of logging/assert macros in base/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: base/logging.h
diff --git a/base/logging.h b/base/logging.h
index fd148aa2694700e910e79810635e60fb466e2b56..0edcf4df76968a7f96d96a208267542e450aa1f5 100644
--- a/base/logging.h
+++ b/base/logging.h
@@ -642,18 +642,13 @@ DEFINE_CHECK_OP_IMPL(GT, > )
#endif // ENABLE_DLOG
-// DEBUG_MODE is for uses like
+// DEBUG_MODE is for runtime uses like
// if (DEBUG_MODE) foo.CheckThatFoo();
-// instead of
-// #ifndef NDEBUG
-// foo.CheckThatFoo();
-// #endif
-//
// We tie its state to ENABLE_DLOG.
+//
+// For compile-time checks, #if ENABLE_DLOG can be used.
enum { DEBUG_MODE = ENABLE_DLOG };
-#undef ENABLE_DLOG
danakj 2016/07/19 20:17:01 Hm.. idk why we need both here. Can we just delete
gab 2016/07/20 02:43:58 Sure, though it's a bit weird to have #if DCHECK_
-
#define DLOG(severity) \
LAZY_STREAM(LOG_STREAM(severity), DLOG_IS_ON(severity))

Powered by Google App Engine
This is Rietveld 408576698