Lines Matching refs:condition
55 // The CHECK(condition) macro is active in both debug and release builds and
100 // There's also VLOG_IS_ON(n) "verbose level" condition macro. To be used as
107 // There is also a VLOG_IF "verbose level" condition macro for sample
123 // PCHECK(condition) << "Couldn't do foo";
124 // DPCHECK(condition) << "Couldn't do foo";
215 // values, and there is a race condition that may leak a critical section
353 // the condition doesn't hold.
354 #define LAZY_STREAM(stream, condition) \
355 !(condition) ? (void) 0 : ::logging::LogMessageVoidify() & (stream)
368 #define LOG_IF(severity, condition) \
369 LAZY_STREAM(LOG_STREAM(severity), LOG_IS_ON(severity) && (condition))
372 #define SYSLOG_IF(severity, condition) LOG_IF(severity, condition)
381 #define VLOG_IF(verbose_level, condition) \
383 VLOG_IS_ON(verbose_level) && (condition))
398 #define VPLOG_IF(verbose_level, condition) \
400 condition))
404 #define LOG_ASSERT(condition) \
405 LOG_IF(FATAL, !(condition)) << "Assert failed: " #condition ". "
406 #define SYSLOG_ASSERT(condition) \
407 SYSLOG_IF(FATAL, !(condition)) << "Assert failed: " #condition ". "
422 #define PLOG_IF(severity, condition) \
423 LAZY_STREAM(PLOG_STREAM(severity), LOG_IS_ON(severity) && (condition))
429 // CHECK dies with a fatal error if condition is not true. It is *not*
444 #define CHECK(condition) \
445 !(condition) ? ::base::debug::BreakDebugger() : EAT_STREAM_PARAMETERS
447 #define PCHECK(condition) CHECK(condition)
453 #define CHECK(condition) \
454 LAZY_STREAM(LOG_STREAM(FATAL), !(condition)) \
455 << "Check failed: " #condition ". "
457 #define PCHECK(condition) \
458 LAZY_STREAM(PLOG_STREAM(FATAL), !(condition)) \
459 << "Check failed: " #condition ". "
553 #define DLOG_IF(severity, condition) LOG_IF(severity, condition)
554 #define DLOG_ASSERT(condition) LOG_ASSERT(condition)
555 #define DPLOG_IF(severity, condition) PLOG_IF(severity, condition)
556 #define DVLOG_IF(verboselevel, condition) VLOG_IF(verboselevel, condition)
557 #define DVPLOG_IF(verboselevel, condition) VPLOG_IF(verboselevel, condition)
562 // |condition| (which may reference a variable defined only if NDEBUG
567 #define DLOG_IF(severity, condition) EAT_STREAM_PARAMETERS
568 #define DLOG_ASSERT(condition) EAT_STREAM_PARAMETERS
569 #define DPLOG_IF(severity, condition) EAT_STREAM_PARAMETERS
570 #define DVLOG_IF(verboselevel, condition) EAT_STREAM_PARAMETERS
571 #define DVPLOG_IF(verboselevel, condition) EAT_STREAM_PARAMETERS
616 // DCHECK et al. make sure to reference |condition| regardless of
621 #define DCHECK(condition) \
622 LAZY_STREAM(LOG_STREAM(DCHECK), DCHECK_IS_ON && !(condition)) \
623 << "Check failed: " #condition ". "
625 #define DPCHECK(condition) \
626 LAZY_STREAM(PLOG_STREAM(DCHECK), DCHECK_IS_ON && !(condition)) \
627 << "Check failed: " #condition ". "
817 #define RAW_CHECK(condition) \
819 if (!(condition)) \
820 logging::RawLog(logging::LOG_FATAL, "Check failed: " #condition "\n"); \