mdb_env_set_assert function
Set or reset the assert() callback of the environment.
Disabled if liblmdb is built with NDEBUG.
@note This hack should become obsolete as lmdb's error handling matures.
@paramin
env An environment handle returned by #mdb_env_create().
@paramin
func An #MDB_assert_func function, or 0.
@return A non-zero error value on failure and 0 on success.
Implementation
@ffi.FfiNative<
ffi.Int Function(ffi.Pointer<MDB_env>,
ffi.Pointer<MDB_assert_func>)>('mdb_env_set_assert')
external int mdb_env_set_assert(
ffi.Pointer<MDB_env> env,
ffi.Pointer<MDB_assert_func> func,
);