From d232737087a80eecf1d0f3e4d346010137ff2bac Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Tue, 18 Sep 2018 18:16:24 +0300 Subject: [PATCH] mdbx: backport - add MDBX_FORCE_ASSERT. Change-Id: I68a9f7b42663ea157c7c0a5a58797c94127b45ed --- src/bits.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bits.h b/src/bits.h index a4789ec0..008579a9 100644 --- a/src/bits.h +++ b/src/bits.h @@ -822,7 +822,7 @@ void mdbx_panic(const char *fmt, ...) #else #define mdbx_debug_enabled(type) (0) -#ifndef NDEBUG +#if !defined(NDEBUG) || defined(MDBX_FORCE_ASSERT) #define mdbx_assert_enabled() (1) #else #define mdbx_assert_enabled() (0)