pybind11/tests/test_installed_module/main.cpp

11 lines
219 B
C++
Raw Normal View History

2016-12-13 16:02:37 +00:00
#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();
}