mirror of
https://github.com/pybind/pybind11.git
synced 2026-05-12 09:17:42 +00:00
find . -name '*.h' -o -name '*.cpp' -o -name '*.py' | xargs -n 1 -- sed -i 's/PYBIND11_HAVE_/PYBIND11_HAS_/g' (#5286)
This commit is contained in:
committed by
GitHub
parent
48f25275c4
commit
7c6fe49106
@@ -93,7 +93,7 @@ TEST_SUBMODULE(class_, m) {
|
||||
struct ToBeHeldByUniquePtr {};
|
||||
py::class_<ToBeHeldByUniquePtr, std::unique_ptr<ToBeHeldByUniquePtr>>(m, "ToBeHeldByUniquePtr")
|
||||
.def(py::init<>());
|
||||
#ifdef PYBIND11_HAVE_INTERNALS_WITH_SMART_HOLDER_SUPPORT
|
||||
#ifdef PYBIND11_HAS_INTERNALS_WITH_SMART_HOLDER_SUPPORT
|
||||
m.def("pass_unique_ptr", [](std::unique_ptr<ToBeHeldByUniquePtr> &&) {});
|
||||
#else
|
||||
m.attr("pass_unique_ptr") = py::none();
|
||||
|
||||
Reference in New Issue
Block a user