Commit d465e31b authored by pilgrim's avatar pilgrim Committed by Commit bot

Remove obsolete ASSERT macros

BUG=596760

Review-Url: https://codereview.chromium.org/2901843002
Cr-Commit-Position: refs/heads/master@{#473932}
parent ef4b834e
......@@ -120,27 +120,10 @@ class WTF_EXPORT ScopedLogger {
#define CRASH() IMMEDIATE_CRASH()
#endif
// ASSERT
// These macros are compiled out of release builds.
// Expressions inside them are evaluated in debug builds only.
// This is deprecated. We should use:
// - DCHECK() for ASSERT()
#if OS(WIN)
// FIXME: Change to use something other than ASSERT to avoid this conflict with
// the underlying platform.
#undef ASSERT
#endif
#define DCHECK_AT(assertion, file, line) \
LAZY_STREAM(logging::LogMessage(file, line, #assertion).stream(), \
DCHECK_IS_ON() ? !(assertion) : false)
#if DCHECK_IS_ON()
#define ASSERT(assertion) DCHECK(assertion)
#else
#define ASSERT(assertion) ((void)0)
#endif
// Users must test "#if ENABLE(SECURITY_ASSERT)", which helps ensure
// that code testing this macro has included this header.
#if defined(ADDRESS_SANITIZER) || DCHECK_IS_ON()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment