2024-06-29 17:55:25 +00:00
|
|
|
#include "pybind11_tests.h"
|
|
|
|
|
2024-06-29 18:09:03 +00:00
|
|
|
namespace pybind11_tests {
|
|
|
|
namespace wip {
|
|
|
|
|
|
|
|
struct SomeType {};
|
|
|
|
|
|
|
|
} // namespace wip
|
|
|
|
} // namespace pybind11_tests
|
|
|
|
|
|
|
|
TEST_SUBMODULE(wip, m) {
|
|
|
|
m.attr("__doc__") = "WIP";
|
|
|
|
|
|
|
|
using namespace pybind11_tests::wip;
|
|
|
|
|
2024-06-29 23:13:47 +00:00
|
|
|
py::class_<SomeType>(m, "SomeType").def(py::init([]() {
|
|
|
|
return std::unique_ptr<SomeType>(new SomeType);
|
|
|
|
}));
|
2024-06-30 21:09:19 +00:00
|
|
|
|
|
|
|
m.def("make_some_type", []() { return std::unique_ptr<SomeType>(new SomeType); });
|
2024-06-29 18:09:03 +00:00
|
|
|
}
|