diff --git a/docs/Doxyfile.in b/docs/Doxyfile.in index e23678eb..4049f810 100644 --- a/docs/Doxyfile.in +++ b/docs/Doxyfile.in @@ -945,6 +945,7 @@ EXCLUDE_SYMBOLS = NOMINMAX __ORDER_BIG_ENDIAN__ __ORDER_LITTLE_ENDIAN__ \ __has_include __has_attribute __has_builtin __has_cpp_attribute __has_extension __has_feature \ HAVE_STRUCT_IOVEC MDBX_STRINGIFY_HELPER MDBX_STRINGIFY \ MDBX_NOSANITIZE_ENUM MDBX_PRINTF_ARGS \ + MDBX_HAVE_CXX20_CONCEPTS \ CONSTEXPR_ENUM_FLAGS_OPERATIONS DEFINE_ENUM_FLAG_OPERATORS \ bool false true __dll_export __dll_import @@ -2222,6 +2223,8 @@ INCLUDE_FILE_PATTERNS = # This tag requires that the tag ENABLE_PREPROCESSING is set to YES. PREDEFINED = DOXYGEN MDBX_DECLARE_EXCEPTION \ + MDBX_NOTHROW_PURE_FUNCTION MDBX_PURE_FUNCTION \ + MDBX_NOTHROW_CONST_FUNCTION \ MDBX_CXX01_CONSTEXPR MDBX_CXX01_CONSTEXPR_VAR \ MDBX_CXX11_CONSTEXPR MDBX_CXX11_CONSTEXPR_VAR \ MDBX_CXX14_CONSTEXPR MDBX_CXX14_CONSTEXPR_VAR \ diff --git a/mdbx.h++ b/mdbx.h++ index 730c75d0..8d9a28ca 100644 --- a/mdbx.h++ +++ b/mdbx.h++ @@ -189,7 +189,9 @@ /** Workaround for old compilers without properly support for C++20 `if * constexpr`. */ -#if defined(__cpp_if_constexpr) && __cpp_if_constexpr >= 201606L +#if defined(DOXYGEN) +#define MDBX_IF_CONSTEXPR constexpr +#elif defined(__cpp_if_constexpr) && __cpp_if_constexpr >= 201606L #define MDBX_IF_CONSTEXPR constexpr #else #define MDBX_IF_CONSTEXPR