Lines Matching refs:condition
67 /* check condition related to argc/argv, return and logging. */
68 #define ASSERT_ARGS(ctxt, condition, message) \
70 if (!(condition)) { \
73 LOG_ERROR(UDMF_KITS_NAPI, "test (" #condition ") failed: " message); \
87 /* check condition, return and logging if condition not true. */
88 #define ASSERT(condition, message, retVal) \
90 if (!(condition)) { \
91 LOG_ERROR(UDMF_KITS_NAPI, "test (" #condition ") failed: " message); \
96 #define ASSERT_VOID(condition, message) \
98 if (!(condition)) { \
99 LOG_ERROR(UDMF_KITS_NAPI, "test (" #condition ") failed: " message); \
104 #define ASSERT_FALSE(condition, message) \
106 if (!(condition)) { \
107 LOG_ERROR(UDMF_KITS_NAPI, "test (" #condition ") failed: " message); \
112 #define ASSERT_NULL(condition, message) ASSERT(condition, message, nullptr)
159 #define ASSERT_WITH_ERRCODE(ctxt, condition, errcode, message) \
161 if (!(condition)) { \
164 LOG_ERROR(UDMF_KITS_NAPI, "test (" #condition ") failed: " message); \