diff --git a/packages/p/pybind11/xmake.lua b/packages/p/pybind11/xmake.lua index bb31da09f..1f69fdd1b 100644 --- a/packages/p/pybind11/xmake.lua +++ b/packages/p/pybind11/xmake.lua @@ -20,11 +20,8 @@ package("pybind11") int add(int i, int j) { return i + j; } - namespace py = pybind11; - PYBIND11_PLUGIN(example) { - py::module m("example", "pybind11 example plugin"); + PYBIND11_MODULE(example, m) { m.def("add", &add, "A function which adds two numbers"); - return m.ptr(); } ]]}, {configs = {languages = "c++11"}})) end)