Add PYBIND11_HAS_RETURN_VALUE_POLICY_... defines. (#4352)

This commit is contained in:
Ralf W. Grosse-Kunstleve 2022-11-28 11:10:03 -08:00 committed by GitHub
parent d095a9bcff
commit 341bc8ac99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {