diff --git a/userland/libs/pybind11/class_test.cpp b/userland/libs/pybind11/class_test.cpp index 0f86c19..9e10bff 100644 --- a/userland/libs/pybind11/class_test.cpp +++ b/userland/libs/pybind11/class_test.cpp @@ -18,8 +18,8 @@ struct ClassTestDerived : ClassTest { namespace py = pybind11; -PYBIND11_PLUGIN(class_test) { - py::module m("my_module", "pybind11 example plugin"); +PYBIND11_MODULE(class_test, m) { + m.doc() = "pybind11 example plugin"; py::class_(m, "ClassTest") .def(py::init()) .def("setName", &ClassTest::setName) @@ -29,5 +29,4 @@ PYBIND11_PLUGIN(class_test) { .def(py::init()) .def("getName2", &ClassTestDerived::getName2) .def_readwrite("name", &ClassTestDerived::name); - return m.ptr(); }