25#define ASSERT_DEFAULT 0
28#define ASSERT_NO_ABORT 1
31#define ASSERT_NO_TIMESTAMP 2
34#define ASSERT_FOR_TESTS 4
49#define ASSERT(cond, opts) \
52 if ((opts) & ASSERT_NO_TIMESTAMP) { \
53 LOG_DEBUG("ASSERT " #cond " failed !!!"); \
55 time_t assert_time = time(NULL); \
56 LOG_DEBUG("[% ld ] ASSERT " #cond " failed !!!"); \
58 if ((opts) & ASSERT_FOR_TESTS) { \
60 } else if (!((opts) & ASSERT_NO_ABORT)) { \
71#define ASSERT_DEFAULT 0
72#define ASSERT_NO_ABORT 0
73#define ASSERT_NO_TIMESTAMP 0
75#define ASSERT(cond, opts)
Assertion utilities for the ya ecosystem.
Logging utilities for the ya ecosystem.