13 linenr, condition_name));
17#if defined(KUZU_RUNTIME_CHECKS) || !defined(NDEBUG)
18#define RUNTIME_CHECK(code) code
19#define KU_ASSERT(condition) \
20 static_cast<bool>(condition) ? \
22 kuzu::common::kuAssertFailureInternal(#condition, __FILE__, __LINE__)
24#define KU_ASSERT(condition) void(0)
25#define RUNTIME_CHECK(code) void(0)
28#define KU_UNREACHABLE \
29 [[unlikely]] kuzu::common::kuAssertFailureInternal("KU_UNREACHABLE", \
31#define KU_UNUSED(expr) (void)(expr)
std::string stringFormat(std::string_view format, Args... args)
Definition string_format.h:99
void kuAssertFailureInternal(const char *condition_name, const char *file, int linenr)
Definition assert.h:9
Definition array_utils.h:7