Home | History | Annotate | Download | only in base

Lines Matching refs:condition

58 // The CHECK(condition) macro is active in both debug and release builds and
103 // There's also VLOG_IS_ON(n) "verbose level" condition macro. To be used as
110 // There is also a VLOG_IF "verbose level" condition macro for sample
126 // PCHECK(condition) << "Couldn't do foo";
127 // DPCHECK(condition) << "Couldn't do foo";
204 // values, and there is a race condition that may leak a critical section
355 // the condition doesn't hold.
356 #define LAZY_STREAM(stream, condition) \
357 !(condition) ? (void) 0 : ::logging::LogMessageVoidify() & (stream)
370 #define LOG_IF(severity, condition) \
371 LAZY_STREAM(LOG_STREAM(severity), LOG_IS_ON(severity) && (condition))
374 condition) LOG_IF(severity, condition)
383 #define VLOG_IF(verbose_level, condition) \
385 VLOG_IS_ON(verbose_level) && (condition))
400 #define VPLOG_IF(verbose_level, condition) \
402 VLOG_IS_ON(verbose_level) && (condition))
406 #define LOG_ASSERT(condition) \
407 LOG_IF(FATAL, !(condition)) << "Assert failed: " #condition ". "
408 #define SYSLOG_ASSERT(condition) \
409 SYSLOG_IF(FATAL, !(condition)) << "Assert failed: " #condition ". "
441 #define PLOG_IF(severity, condition) \
442 LAZY_STREAM(PLOG_STREAM(severity), LOG_IS_ON(severity) && (condition))
444 // CHECK dies with a fatal error if condition is not true. It is *not*
450 #define CHECK(condition) \
451 LAZY_STREAM(LOG_STREAM(FATAL), !(condition)) \
452 << "Check failed: " #condition ". "
454 #define PCHECK(condition) \
455 LAZY_STREAM(PLOG_STREAM(FATAL), !(condition)) \
456 << "Check failed: " #condition ". "
560 #define DLOG_IF(severity, condition) LOG_IF(severity, condition)
561 #define DLOG_ASSERT(condition) LOG_ASSERT(condition)
562 #define DPLOG_IF(severity, condition) PLOG_IF(severity, condition)
563 #define DVLOG_IF(verboselevel, condition) VLOG_IF(verboselevel, condition)
564 #define DVPLOG_IF(verboselevel, condition) VPLOG_IF(verboselevel, condition)
569 // |condition| (which may reference a variable defined only if NDEBUG
577 #define DLOG_IF(severity, condition) DLOG_EAT_STREAM_PARAMETERS
578 #define DLOG_ASSERT(condition) DLOG_EAT_STREAM_PARAMETERS
579 #define DPLOG_IF(severity, condition) DLOG_EAT_STREAM_PARAMETERS
580 #define DVLOG_IF(verboselevel, condition) DLOG_EAT_STREAM_PARAMETERS
581 #define DVPLOG_IF(verboselevel, condition) DLOG_EAT_STREAM_PARAMETERS
658 // DCHECK et al. make sure to reference |condition| regardless of
663 #define DCHECK(condition) \
664 LAZY_STREAM(LOG_STREAM(DCHECK), DCHECK_IS_ON() && !(condition)) \
665 << "Check failed: " #condition ". "
667 #define DPCHECK(condition) \
668 LAZY_STREAM(PLOG_STREAM(DCHECK), DCHECK_IS_ON() && !(condition)) \
669 << "Check failed: " #condition ". "
879 #define RAW_CHECK(condition) \
881 if (!(condition)) \
882 logging::RawLog(logging::LOG_FATAL, "Check failed: " #condition "\n"); \