From c8cad3704eeb8a01f60ee1a8c3f3db64cde33236 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Tue, 26 Apr 2022 01:02:07 +0300 Subject: [PATCH] mdbx-docs: minor refine Doxygen config and comments. --- docs/Doxyfile.in | 3 +++ mdbx.h++ | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) 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