Lines Matching defs:condition
185 // implementation-defined when the above pre-condition is violated.
218 // implementation-defined when the above pre-condition is violated.
241 // Asserts that condition is true; aborts the process with the given
242 // message if condition is false. We cannot use LOG(FATAL) or CHECK()
246 inline void Assert(bool condition, const char* file, int line,
248 if (!condition) {
253 inline void Assert(bool condition, const char* file, int line) {
254 Assert(condition, file, line, "Assertion failed.");
257 // Verifies that condition is true; generates a non-fatal failure if
258 // condition is false.
259 inline void Expect(bool condition, const char* file, int line,
261 if (!condition) {
266 inline void Expect(bool condition, const char* file, int line) {
267 Expect(condition, file, line, "Expectation failed.");