Skip to content

Commit

Permalink
enable asserts by default in debug mode
Browse files Browse the repository at this point in the history
Disabling asserts by default in debug mode is counter-intuitive.
  • Loading branch information
Riolku committed Nov 6, 2023
1 parent 873e041 commit f51345c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/include/common/assert.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace common {
// LCOV_EXCL_END
}

#ifdef KUZU_RUNTIME_CHECKS
#if defined(KUZU_RUNTIME_CHECKS) || !defined(NDEBUG)
#define KU_ASSERT(condition) \
if (!(condition)) { \
[[unlikely]] kuzu::common::kuAssertFailureInternal(#condition, __FILE__, __LINE__); \
Expand Down

0 comments on commit f51345c

Please sign in to comment.