Lines Matching full:condition
29 // The CHECK(condition) macro is active in both debug and release builds and
74 // There's also VLOG_IS_ON(n) "verbose level" condition macro. To be used as
81 // There is also a VLOG_IF "verbose level" condition macro for sample
97 // PCHECK(condition) << "Couldn't do foo";
98 // DPCHECK(condition) << "Couldn't do foo";
174 // the condition doesn't hold.
175 #define LAZY_STREAM(stream, condition) \
176 !(condition) ? (void) 0 : ::logging::LogMessageVoidify() & (stream)
189 #define LOG_IF(severity, condition) \
190 LAZY_STREAM(LOG_STREAM(severity), LOG_IS_ON(severity) && (condition))
199 #define VLOG_IF(verbose_level, condition) \
201 VLOG_IS_ON(verbose_level) && (condition))
205 #define LOG_ASSERT(condition) \
206 LOG_IF(FATAL, !(condition)) << "Assert failed: " #condition ". "
207 #define SYSLOG_ASSERT(condition) \
208 SYSLOG_IF(FATAL, !(condition)) << "Assert failed: " #condition ". "
213 #define PLOG_IF(severity, condition) \
214 LAZY_STREAM(PLOG_STREAM(severity), LOG_IS_ON(severity) && (condition))
220 // CHECK dies with a fatal error if condition is not true. It is *not*
227 #define CHECK(condition) \
228 LAZY_STREAM(LOG_STREAM(FATAL), !(condition)) \
229 << "Check failed: " #condition ". "
231 #define PCHECK(condition) \
232 LAZY_STREAM(PLOG_STREAM(FATAL), !(condition)) \
233 << "Check failed: " #condition ". "
325 #define DLOG_IF(severity, condition) LOG_IF(severity, condition)
326 #define DLOG_ASSERT(condition) LOG_ASSERT(condition)
327 #define DPLOG_IF(severity, condition) PLOG_IF(severity, condition)
328 #define DVLOG_IF(verboselevel, condition) VLOG_IF(verboselevel, condition)
329 #define DVPLOG_IF(verboselevel, condition) VPLOG_IF(verboselevel, condition)
334 // |condition| (which may reference a variable defined only if NDEBUG
339 #define DLOG_IF(severity, condition) EAT_STREAM_PARAMETERS
340 #define DLOG_ASSERT(condition) EAT_STREAM_PARAMETERS
341 #define DPLOG_IF(severity, condition) EAT_STREAM_PARAMETERS
342 #define DVLOG_IF(verboselevel, condition) EAT_STREAM_PARAMETERS
343 #define DVPLOG_IF(verboselevel, condition) EAT_STREAM_PARAMETERS
388 // DCHECK et al. make sure to reference |condition| regardless of
393 #define DCHECK(condition) \
394 LAZY_STREAM(LOG_STREAM(DCHECK), DCHECK_IS_ON && !(condition)) \
395 << "Check failed: " #condition ". "
397 #define DPCHECK(condition) \
398 LAZY_STREAM(PLOG_STREAM(DCHECK), DCHECK_IS_ON && !(condition)) \
399 << "Check failed: " #condition ". "
589 #define RAW_CHECK(condition) \
591 if (!(condition)) \
592 logging::RawLog(logging::LOG_FATAL, "Check failed: " #condition "\n"); \