summaryrefslogtreecommitdiffstats
path: root/chromium/v8/src/base/logging.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/v8/src/base/logging.h')
-rw-r--r--chromium/v8/src/base/logging.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chromium/v8/src/base/logging.h b/chromium/v8/src/base/logging.h
index 790018c98e9..fe39f988225 100644
--- a/chromium/v8/src/base/logging.h
+++ b/chromium/v8/src/base/logging.h
@@ -134,6 +134,12 @@ V8_BASE_EXPORT void SetDcheckFunction(void (*dcheck_Function)(const char*, int,
#endif
+#if V8_HAS_CXX14_CONSTEXPR
+#define CONSTEXPR_DCHECK(cond) DCHECK(cond)
+#else
+#define CONSTEXPR_DCHECK(cond)
+#endif
+
// Define PrintCheckOperand<T> for each T which defines operator<< for ostream.
template <typename T>
typename std::enable_if<