diff options
Diffstat (limited to 'ext/pybind11/tests/test_installed_module/main.cpp')
-rw-r--r-- | ext/pybind11/tests/test_installed_module/main.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/pybind11/tests/test_installed_module/main.cpp b/ext/pybind11/tests/test_installed_module/main.cpp new file mode 100644 index 000000000..a0bda4542 --- /dev/null +++ b/ext/pybind11/tests/test_installed_module/main.cpp @@ -0,0 +1,10 @@ +#include <pybind11/pybind11.h> +namespace py = pybind11; + +PYBIND11_PLUGIN(test_installed_module) { + py::module m("test_installed_module"); + + m.def("add", [](int i, int j) { return i + j; }); + + return m.ptr(); +} |