mirror of
https://github.com/isar/libmdbx.git
synced 2025-12-25 20:12:23 +08:00
mdbx++: Initial C++ API (some extra methods are not implemented).
Change-Id: I0478d0c94dcd12b52916e87815e5731817407c3c
This commit is contained in:
@@ -31,14 +31,15 @@ const char *test_strerror(int errnum) {
|
||||
return mdbx_strerror_r(errnum, buf, sizeof(buf));
|
||||
}
|
||||
|
||||
void __noreturn failure_perror(const char *what, int errnum) {
|
||||
__noreturn void failure_perror(const char *what, int errnum) {
|
||||
failure("%s failed: %s (%d)\n", what, test_strerror(errnum), errnum);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
static void mdbx_logger(MDBX_log_level_t priority, const char *function,
|
||||
int line, const char *msg, va_list args) {
|
||||
int line, const char *msg,
|
||||
va_list args) cxx17_noexcept {
|
||||
if (!function)
|
||||
function = "unknown";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user