mdbx: add mdbx_assert_fail() to public API.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev)
2022-06-01 18:55:18 +03:00
parent 501691a3c0
commit 106f39327e
3 changed files with 5 additions and 19 deletions

4
mdbx.h
View File

@@ -1004,6 +1004,10 @@ LIBMDBX_API const char *mdbx_dump_val(const MDBX_val *key, char *const buf,
/** \brief Panics with message and causes abnormal process termination. */
LIBMDBX_API void mdbx_panic(const char *fmt, ...) MDBX_PRINTF_ARGS(1, 2);
/** \brief Panics with asserton failed message and causes abnormal process
* termination. */
LIBMDBX_API void mdbx_assert_fail(const MDBX_env *env, const char *msg,
const char *func, unsigned line);
/** end of c_debug @} */
/** \brief Environment flags