Lines Matching full:condition
57 // The CHECK(condition) macro is active in both debug and release builds and
102 // There's also VLOG_IS_ON(n) "verbose level" condition macro. To be used as
109 // There is also a VLOG_IF "verbose level" condition macro for sample
196 // values, and there is a race condition that may leak a critical section
327 // the condition doesn't hold. Condition is evaluated once and only once.
328 #define LAZY_STREAM(stream, condition) \
329 !(condition) ? (void) 0 : ::logging::LogMessageVoidify() & (stream)
342 #define LOG_IF(severity, condition) \
343 LAZY_STREAM(LOG_STREAM(severity), LOG_IS_ON(severity) && (condition))
346 #define SYSLOG_IF(severity, condition) LOG_IF(severity, condition)
355 #define VLOG_IF(verbose_level, condition) \
357 VLOG_IS_ON(verbose_level) && (condition))
359 #define LOG_ASSERT(condition) \
360 LOG_IF(FATAL, !(condition)) << "Assert failed: " #condition ". "
361 #define SYSLOG_ASSERT(condition) \
362 SYSLOG_IF(FATAL, !(condition)) << "Assert failed: " #condition ". "
383 // CHECK dies with a fatal error if condition is not true. It is *not*
398 #define CHECK(condition) \
399 !(condition) ? ::base::debug::BreakDebugger() : EAT_STREAM_PARAMETERS
401 #define PCHECK(condition) CHECK(condition)
408 #define CHECK(condition) \
409 LAZY_STREAM(logging::LogMessage(__FILE__, __LINE__, #condition).stream(), \
410 !(condition))
505 #define DLOG_IF(severity, condition) LOG_IF(severity, condition)
506 #define DLOG_ASSERT(condition) LOG_ASSERT(condition)
507 #define DVLOG_IF(verboselevel, condition) VLOG_IF(verboselevel, condition)
512 // |condition| (which may reference a variable defined only if NDEBUG
517 #define DLOG_IF(severity, condition) EAT_STREAM_PARAMETERS
518 #define DLOG_ASSERT(condition) EAT_STREAM_PARAMETERS
519 #define DVLOG_IF(verboselevel, condition) EAT_STREAM_PARAMETERS
559 // DCHECK et al. make sure to reference |condition| regardless of
564 #define DCHECK(condition) \
565 LAZY_STREAM(LOG_STREAM(DCHECK), DCHECK_IS_ON() ? !(condition) : false) \
566 << "Check failed: " #condition ". "
631 LogMessage(const char* file, int line, const char* condition);
681 #define RAW_CHECK(condition) \
683 if (!(condition)) \
684 logging::RawLog(logging::LOG_FATAL, "Check failed: " #condition "\n"); \