Lines Matching defs:condition
182 // implementation-defined when the above pre-condition is violated.
215 // implementation-defined when the above pre-condition is violated.
238 // Asserts that condition is true; aborts the process with the given
239 // message if condition is false. We cannot use LOG(FATAL) or CHECK()
243 inline void Assert(bool condition, const char* file, int line,
245 if (!condition) {
250 inline void Assert(bool condition, const char* file, int line) {
251 Assert(condition, file, line, "Assertion failed.");
254 // Verifies that condition is true; generates a non-fatal failure if
255 // condition is false.
256 inline void Expect(bool condition, const char* file, int line,
258 if (!condition) {
263 inline void Expect(bool condition, const char* file, int line) {
264 Expect(condition, file, line, "Expectation failed.");
315 Assert(/*condition=*/false, /*file=*/"", /*line=*/-1,