From 60bba72aa18fd72d84ec0a729a56b52f2e850c87 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Tue, 18 Sep 2018 21:07:01 +0300 Subject: [PATCH] mdbx: re-define assert macro via mdbx_assert. Change-Id: I317801ba4200bdf1aa5cacf75d21a8e633fbc48a --- src/bits.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bits.h b/src/bits.h index 1a3c6cf7..84428eaa 100644 --- a/src/bits.h +++ b/src/bits.h @@ -967,6 +967,9 @@ void mdbx_panic(const char *fmt, ...) /* assert(3) variant in transaction context */ #define mdbx_tassert(txn, expr) mdbx_assert((txn)->mt_env, expr) +#undef assert +#define assert(expr) mdbx_assert(NULL, expr) + static __inline void mdbx_jitter4testing(bool tiny) { #ifndef NDEBUG if (MDBX_DBG_JITTER & mdbx_runtime_flags)