diff options
Diffstat (limited to 'ext/pybind11/tests/test_cmake_build/main.cpp')
-rw-r--r-- | ext/pybind11/tests/test_cmake_build/main.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ext/pybind11/tests/test_cmake_build/main.cpp b/ext/pybind11/tests/test_cmake_build/main.cpp index e0f5b69c9..e30f2c4b9 100644 --- a/ext/pybind11/tests/test_cmake_build/main.cpp +++ b/ext/pybind11/tests/test_cmake_build/main.cpp @@ -1,10 +1,6 @@ #include <pybind11/pybind11.h> namespace py = pybind11; -PYBIND11_PLUGIN(test_cmake_build) { - py::module m("test_cmake_build"); - +PYBIND11_MODULE(test_cmake_build, m) { m.def("add", [](int i, int j) { return i + j; }); - - return m.ptr(); } |