blob: a0bda45426efa495169580cd1934fcb2d748d0ad (
plain)
1
2
3
4
5
6
7
8
9
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();
}
|