mdbx: add mdbx_panic() to C API.

Change-Id: I009a7889311b57ae2210822a8087889f900919f8
This commit is contained in:
Leonid Yuriev
2020-09-10 15:37:59 +03:00
parent 58bcfb006e
commit cd4caeb03d
3 changed files with 7 additions and 11 deletions

View File

@@ -1064,13 +1064,6 @@ MDBX_INTERNAL_FUNC void mdbx_debug_log_va(int level, const char *function,
#endif /* MDBX_DEBUG */
#if defined(__ANDROID_API__)
#define mdbx_panic(fmt, ...) \
__android_log_assert("panic", "mdbx", fmt, __VA_ARGS__)
#else
void mdbx_panic(const char *fmt, ...) __printf_args(1, 2);
#endif
#if !MDBX_DEBUG && defined(__ANDROID_API__)
#define mdbx_assert_fail(env, msg, func, line) \
__android_log_assert(msg, "mdbx", "%s:%u", func, line)