From 341bc8ac99205eccbe1537ed8a977b9591f02460 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Mon, 28 Nov 2022 11:10:03 -0800 Subject: [PATCH] Add `PYBIND11_HAS_RETURN_VALUE_POLICY_...` defines. (#4352) --- include/pybind11/detail/common.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/pybind11/detail/common.h b/include/pybind11/detail/common.h index c281a50f0..6c594ab70 100644 --- a/include/pybind11/detail/common.h +++ b/include/pybind11/detail/common.h @@ -487,6 +487,9 @@ enum class return_value_policy : uint8_t { _clif_automatic }; +#define PYBIND11_HAS_RETURN_VALUE_POLICY_RETURN_AS_BYTES +#define PYBIND11_HAS_RETURN_VALUE_POLICY_CLIF_AUTOMATIC + PYBIND11_NAMESPACE_BEGIN(detail) inline static constexpr int log2(size_t n, int k = 0) {