mdbx: add MDBX_FORCE_ASSERT.

Change-Id: I68a9f7b42663ea157c7c0a5a58797c94127b45ed
This commit is contained in:
Leonid Yuriev 2018-09-18 18:16:24 +03:00
parent d6d03639a2
commit ab5668cf29

View File

@ -861,7 +861,7 @@ void mdbx_panic(const char *fmt, ...)
#else
#define mdbx_debug_enabled(type) (0)
#define mdbx_audit_enabled() (0)
#ifndef NDEBUG
#if !defined(NDEBUG) || defined(MDBX_FORCE_ASSERT)
#define mdbx_assert_enabled() (1)
#else
#define mdbx_assert_enabled() (0)