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