Skip to content

Commit

Permalink
Add PYBIND11_HAS_RETURN_VALUE_POLICY_... defines. (pybind#4352)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralf W. Grosse-Kunstleve authored Nov 28, 2022
1 parent d095a9b commit 341bc8a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/pybind11/detail/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 341bc8a

Please sign in to comment.