Lines Matching refs:condition
59 // The CHECK(condition) macro is active in both debug and release builds and
104 // There's also VLOG_IS_ON(n) "verbose level" condition macro. To be used as
111 // There is also a VLOG_IF "verbose level" condition macro for sample
127 // PCHECK(condition) << "Couldn't do foo";
128 // DPCHECK(condition) << "Couldn't do foo";
232 // values, and there is a race condition that may leak a critical section
384 // the condition doesn't hold.
385 #define LAZY_STREAM(stream, condition) \
386 !(condition) ? (void) 0 : ::logging::LogMessageVoidify() & (stream)
399 #define LOG_IF(severity, condition) \
400 LAZY_STREAM(LOG_STREAM(severity), LOG_IS_ON(severity) && (condition))
403 #define SYSLOG_IF(severity, condition) LOG_IF(severity, condition)
412 #define VLOG_IF(verbose_level, condition) \
414 VLOG_IS_ON(verbose_level) && (condition))
429 #define VPLOG_IF(verbose_level, condition) \
431 VLOG_IS_ON(verbose_level) && (condition))
435 #define LOG_ASSERT(condition) \
436 LOG_IF(FATAL, !(condition)) << "Assert failed: " #condition ". "
437 #define SYSLOG_ASSERT(condition) \
438 SYSLOG_IF(FATAL, !(condition)) << "Assert failed: " #condition ". "
469 #define PLOG_IF(severity, condition) \
470 LAZY_STREAM(PLOG_STREAM(severity), LOG_IS_ON(severity) && (condition))
490 // CHECK dies with a fatal error if condition is not true. It is *not*
505 #define CHECK(condition) \
506 !(condition) ? ::base::debug::BreakDebugger() : EAT_STREAM_PARAMETERS
508 #define PCHECK(condition) CHECK(condition)
514 #define CHECK(condition) \
515 LAZY_STREAM(LOG_STREAM(FATAL), !(condition)) \
516 << "Check failed: " #condition ". "
518 #define PCHECK(condition) \
519 LAZY_STREAM(PLOG_STREAM(FATAL), !(condition)) \
520 << "Check failed: " #condition ". "
620 #define DLOG_IF(severity, condition) LOG_IF(severity, condition)
621 #define DLOG_ASSERT(condition) LOG_ASSERT(condition)
622 #define DPLOG_IF(severity, condition) PLOG_IF(severity, condition)
623 #define DVLOG_IF(verboselevel, condition) VLOG_IF(verboselevel, condition)
624 #define DVPLOG_IF(verboselevel, condition) VPLOG_IF(verboselevel, condition)
629 // |condition| (which may reference a variable defined only if NDEBUG
634 #define DLOG_IF(severity, condition) EAT_STREAM_PARAMETERS
635 #define DLOG_ASSERT(condition) EAT_STREAM_PARAMETERS
636 #define DPLOG_IF(severity, condition) EAT_STREAM_PARAMETERS
637 #define DVLOG_IF(verboselevel, condition) EAT_STREAM_PARAMETERS
638 #define DVPLOG_IF(verboselevel, condition) EAT_STREAM_PARAMETERS
729 // DCHECK et al. make sure to reference |condition| regardless of
734 #define DCHECK(condition) \
735 LAZY_STREAM(LOG_STREAM(DCHECK), DCHECK_IS_ON() && !(condition)) \
736 << "Check failed: " #condition ". "
738 #define DPCHECK(condition) \
739 LAZY_STREAM(PLOG_STREAM(DCHECK), DCHECK_IS_ON() && !(condition)) \
740 << "Check failed: " #condition ". "
955 #define RAW_CHECK(condition) \
957 if (!(condition)) \
958 logging::RawLog(logging::LOG_FATAL, "Check failed: " #condition "\n"); \