libmdbx  0.11.6.39 (2022-04-13T11:05:50+03:00)
One of the fastest compact embeddable key-value ACID database without WAL.
Common Macros

Macros

#define __has_attribute(x)   (0)
 
#define __has_cpp_attribute(x)   0
 
#define __has_feature(x)   (0)
 
#define __has_extension(x)   (0)
 
#define __has_builtin(x)   (0)
 
#define MDBX_PURE_FUNCTION
 
#define MDBX_NOTHROW_PURE_FUNCTION
 
#define MDBX_CONST_FUNCTION   MDBX_PURE_FUNCTION
 
#define MDBX_NOTHROW_CONST_FUNCTION   MDBX_NOTHROW_PURE_FUNCTION
 
#define MDBX_DEPRECATED
 
#define __dll_export
 
#define __dll_import
 
#define LIBMDBX_INLINE_API(TYPE, NAME, ARGS)   static __inline TYPE NAME ARGS
 Auxiliary macro for robustly define the both inline version of API function and non-inline fallback dll-exported version for applications linked with old version of libmdbx, with a strictly ODR-common implementation. More...
 
#define MDBX_STRINGIFY_HELPER(x)   #x
 Converts a macro argument into a string constant. More...
 
#define MDBX_STRINGIFY(x)   MDBX_STRINGIFY_HELPER(x)
 
#define bool   _Bool
 
#define true   (1)
 
#define false   (0)
 
#define MDBX_CXX17_NOEXCEPT   noexcept
 
#define MDBX_CXX01_CONSTEXPR   __inline
 
#define MDBX_CXX01_CONSTEXPR_VAR   const
 
#define MDBX_CXX11_CONSTEXPR   __inline
 
#define MDBX_CXX11_CONSTEXPR_VAR   const
 
#define MDBX_CXX14_CONSTEXPR   __inline
 
#define MDBX_CXX14_CONSTEXPR_VAR   const
 
#define MDBX_NORETURN
 
#define MDBX_PRINTF_ARGS(format_index, first_arg)
 
#define MDBX_MAYBE_UNUSED   [[maybe_unused]]
 
#define MDBX_NOSANITIZE_ENUM
 
#define DEFINE_ENUM_FLAG_OPERATORS(ENUM)
 
#define CONSTEXPR_ENUM_FLAGS_OPERATIONS   1
 

Detailed Description

close c_api

Macro Definition Documentation

◆ __dll_export

#define __dll_export

◆ __dll_import

#define __dll_import

◆ __has_attribute

#define __has_attribute (   x)    (0)

◆ __has_builtin

#define __has_builtin (   x)    (0)

◆ __has_cpp_attribute

#define __has_cpp_attribute (   x)    0

◆ __has_extension

#define __has_extension (   x)    (0)

◆ __has_feature

#define __has_feature (   x)    (0)

◆ bool

#define bool   _Bool

◆ CONSTEXPR_ENUM_FLAGS_OPERATIONS

#define CONSTEXPR_ENUM_FLAGS_OPERATIONS   1

◆ DEFINE_ENUM_FLAG_OPERATORS

#define DEFINE_ENUM_FLAG_OPERATORS (   ENUM)

◆ false

#define false   (0)

◆ LIBMDBX_INLINE_API

#define LIBMDBX_INLINE_API (   TYPE,
  NAME,
  ARGS 
)    static __inline TYPE NAME ARGS

Auxiliary macro for robustly define the both inline version of API function and non-inline fallback dll-exported version for applications linked with old version of libmdbx, with a strictly ODR-common implementation.

◆ MDBX_CONST_FUNCTION

#define MDBX_CONST_FUNCTION   MDBX_PURE_FUNCTION

Many functions do not examine any values except their arguments, and have no effects except the return value. Basically this is just slightly more strict class than the PURE attribute, since function is not allowed to read global memory.

Note that a function that has pointer arguments and examines the data pointed to must not be declared const. Likewise, a function that calls a non-const function usually must not be const. It does not make sense for a const function to return void.

◆ MDBX_CXX01_CONSTEXPR

#define MDBX_CXX01_CONSTEXPR   __inline

◆ MDBX_CXX01_CONSTEXPR_VAR

#define MDBX_CXX01_CONSTEXPR_VAR   const

◆ MDBX_CXX11_CONSTEXPR

#define MDBX_CXX11_CONSTEXPR   __inline

◆ MDBX_CXX11_CONSTEXPR_VAR

#define MDBX_CXX11_CONSTEXPR_VAR   const

◆ MDBX_CXX14_CONSTEXPR

#define MDBX_CXX14_CONSTEXPR   __inline

◆ MDBX_CXX14_CONSTEXPR_VAR

#define MDBX_CXX14_CONSTEXPR_VAR   const

◆ MDBX_CXX17_NOEXCEPT

#define MDBX_CXX17_NOEXCEPT   noexcept

◆ MDBX_DEPRECATED

#define MDBX_DEPRECATED

◆ MDBX_MAYBE_UNUSED

#define MDBX_MAYBE_UNUSED   [[maybe_unused]]

◆ MDBX_NORETURN

#define MDBX_NORETURN

◆ MDBX_NOSANITIZE_ENUM

#define MDBX_NOSANITIZE_ENUM

◆ MDBX_NOTHROW_CONST_FUNCTION

#define MDBX_NOTHROW_CONST_FUNCTION   MDBX_NOTHROW_PURE_FUNCTION

Like MDBX_CONST_FUNCTION with addition noexcept restriction that is compatible to CLANG and future [[const]].

◆ MDBX_NOTHROW_PURE_FUNCTION

#define MDBX_NOTHROW_PURE_FUNCTION

Like MDBX_PURE_FUNCTION with addition noexcept restriction that is compatible to CLANG and proposed [[pure]].

◆ MDBX_PRINTF_ARGS

#define MDBX_PRINTF_ARGS (   format_index,
  first_arg 
)

◆ MDBX_PURE_FUNCTION

#define MDBX_PURE_FUNCTION

Many functions have no effects except the return value and their return value depends only on the parameters and/or global variables. Such a function can be subject to common subexpression elimination and loop optimization just as an arithmetic operator would be. These functions should be declared with the attribute pure.

◆ MDBX_STRINGIFY

#define MDBX_STRINGIFY (   x)    MDBX_STRINGIFY_HELPER(x)

◆ MDBX_STRINGIFY_HELPER

#define MDBX_STRINGIFY_HELPER (   x)    #x

Converts a macro argument into a string constant.

◆ true

#define true   (1)