55 #define Q_DEFINE_THIS_FILE
56 #define Q_DEFINE_THIS_MODULE(name_)
57 #define Q_ASSERT(test_) ((void)0)
58 #define Q_ASSERT_ID(id_, test_) ((void)0)
59 #define Q_ALLEGE(test_) ((void)(test_))
60 #define Q_ALLEGE_ID(id_, test_) ((void)(test_))
61 #define Q_ERROR() ((void)0)
62 #define Q_ERROR_ID(id_) ((void)0)
104 #define Q_DEFINE_THIS_FILE \
105 static char_t const Q_this_module_[] = __FILE__;
120 #define Q_DEFINE_THIS_MODULE(name_) \
121 static char_t const Q_this_module_[] = name_;
136 #define Q_ASSERT(test_) ((test_) \
137 ? (void)0 : Q_onAssert(&Q_this_module_[0], __LINE__))
155 #define Q_ASSERT_ID(id_, test_) ((test_) \
156 ? (void)0 : Q_onAssert(&Q_this_module_[0], (id_)))
171 #define Q_ALLEGE(test_) Q_ASSERT(test_)
186 #define Q_ALLEGE_ID(id_, test_) Q_ASSERT_ID((id_), (test_))
196 Q_onAssert(&Q_this_module_[0], __LINE__)
211 #define Q_ERROR_ID(id_) \
212 Q_onAssert(&Q_this_module_[0], (id_))
223 #define Q_NORETURN void
268 #define Q_REQUIRE(test_) Q_ASSERT(test_)
279 #define Q_REQUIRE_ID(id_, test_) Q_ASSERT_ID((id_), (test_))
287 #define Q_ENSURE(test_) Q_ASSERT(test_)
298 #define Q_ENSURE_ID(id_, test_) Q_ASSERT_ID((id_), (test_))
308 #define Q_INVARIANT(test_) Q_ASSERT(test_)
319 #define Q_INVARIANT_ID(id_, test_) Q_ASSERT_ID((id_), (test_))
331 #define Q_ASSERT_STATIC(test_) \
332 extern int_t Q_assert_static[(test_) ? 1 : -1]
334 #define Q_ASSERT_COMPILE(test_) Q_ASSERT_STATIC(test_)
337 #define Q_DIM(array_) (sizeof(array_) / sizeof((array_)[0U]))
#define Q_NORETURN
no-return function specifier
char char_t
typedef for character strings.
Q_NORETURN Q_onAssert(char_t const *const module, int_t const location)
Callback function invoked in case of any assertion failure.
int int_t
typedef for assertions-ids and line numbers in assertions.