Lines Matching refs:condition
71 // !(condition) ? (void)0 : (expr)
77 #define LOG_LAZY_EVAL(condition, expr) \
78 !(condition) ? (void)0 : ::android::base::LogStreamVoidify() & (expr)
97 // A variant of LOG() that only performs logging if a specific condition
98 // is encountered. Note that |condition| is only evaluated if |severity|
107 #define LOG_IF(severity, condition) \
108 LOG_LAZY_EVAL(LOG_IS_ON(severity) && (condition), \
124 #define PLOG_IF(severity, condition) \
125 LOG_LAZY_EVAL(LOG_IS_ON(severity) && (condition), \
128 // Evaluate |condition|, and if it fails, log a fatal message.
136 #define CHECK(condition) \
137 LOG_IF(FATAL, !(condition)) << "Check failed: " #condition ". "
142 #define PCHECK(condition) \
143 PLOG_IF(FATAL, !(condition)) << "Check failed: " #condition ". "
205 #define DLOG_IF(severity, condition) \
206 LOG_IF(severity, DLOG_IS_ON() && (condition))
208 // DCHECK(condition) is used to perform CHECK() in debug builds, or if
212 #define DCHECK(condition) \
213 LOG_IF(FATAL, DCHECK_IS_ON() && !(condition)) \
214 << "Check failed: " #condition ". "