Lines Matching refs:cond
35 static inline bool z_zassert_(bool cond, const char *file, int line) in z_zassert_() argument
37 if (cond == false) { in z_zassert_()
47 #define z_zassert(cond, default_msg, file, line, func, msg, ...) z_zassert_(cond, file, line) argument
49 static inline bool z_zassume_(bool cond, const char *file, int line) in z_zassume_() argument
51 if (cond == false) { in z_zassume_()
61 #define z_zassume(cond, default_msg, file, line, func, msg, ...) z_zassume_(cond, file, line) argument
63 static inline bool z_zexpect_(bool cond, const char *file, int line) in z_zexpect_() argument
65 if (cond == false) { in z_zexpect_()
75 #define z_zexpect(cond, default_msg, file, line, func, msg, ...) z_zexpect_(cond, file, line) argument
79 static inline bool z_zassert(bool cond, const char *default_msg, const char *file, int line, in z_zassert() argument
82 if (cond == false) { in z_zassert()
103 static inline bool z_zassume(bool cond, const char *default_msg, const char *file, int line, in z_zassume() argument
106 if (cond == false) { in z_zassume()
127 static inline bool z_zexpect(bool cond, const char *default_msg, const char *file, int line, in z_zexpect() argument
130 if (cond == false) { in z_zexpect()
176 #define _zassert_base(cond, default_msg, msg, ...) \ argument
180 z_zassert(cond, _msg ? ("(" default_msg ")") : (default_msg), __FILE__, \
190 #define _zassert_va(cond, default_msg, msg, ...) \ argument
191 _zassert_base(cond, default_msg, msg, ##__VA_ARGS__)
193 #define zassert(cond, default_msg, ...) \ argument
194 _zassert_va(cond, default_msg, COND_CODE_1(__VA_OPT__(1), (__VA_ARGS__), (NULL)))
214 #define _zassume_base(cond, default_msg, msg, ...) \ argument
218 z_zassume(cond, _msg ? ("(" default_msg ")") : (default_msg), __FILE__, \
228 #define _zassume_va(cond, default_msg, msg, ...) \ argument
229 _zassume_base(cond, default_msg, msg, ##__VA_ARGS__)
231 #define zassume(cond, default_msg, ...) \ argument
232 _zassume_va(cond, default_msg, COND_CODE_1(__VA_OPT__(1), (__VA_ARGS__), (NULL)))
244 #define _zexpect_base(cond, default_msg, msg, ...) \ argument
248 z_zexpect(cond, _msg ? ("(" default_msg ")") : (default_msg), __FILE__, \
258 #define _zexpect_va(cond, default_msg, msg, ...) \ argument
259 _zexpect_base(cond, default_msg, msg, ##__VA_ARGS__)
261 #define zexpect(cond, default_msg, ...) \ argument
262 _zexpect_va(cond, default_msg, COND_CODE_1(__VA_OPT__(1), (__VA_ARGS__), (NULL)))
275 #define zassert_true(cond, ...) zassert(cond, #cond " is false", ##__VA_ARGS__) argument
282 #define zassert_false(cond, ...) zassert(!(cond), #cond " is true", ##__VA_ARGS__) argument
289 #define zassert_ok(cond, ...) zassert(!(cond), #cond " is non-zero", ##__VA_ARGS__) argument
296 #define zassert_not_ok(cond, ...) zassert(!!(cond), #cond " is zero", ##__VA_ARGS__) argument
429 #define zassume_true(cond, ...) zassume(cond, #cond " is false", ##__VA_ARGS__) argument
439 #define zassume_false(cond, ...) zassume(!(cond), #cond " is true", ##__VA_ARGS__) argument
449 #define zassume_ok(cond, ...) zassume(!(cond), #cond " is non-zero", ##__VA_ARGS__) argument
459 #define zassume_not_ok(cond, ...) zassume(!!(cond), #cond " is zero", ##__VA_ARGS__) argument
605 #define zexpect_true(cond, ...) zexpect(cond, #cond " is false", ##__VA_ARGS__) argument
613 #define zexpect_false(cond, ...) zexpect(!(cond), #cond " is true", ##__VA_ARGS__) argument
622 #define zexpect_ok(cond, ...) zexpect(!(cond), #cond " is non-zero", ##__VA_ARGS__) argument
631 #define zexpect_not_ok(cond, ...) zexpect(!!(cond), #cond " is zero", ##__VA_ARGS__) argument