mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-29 16:37:13 +00:00
11 lines
219 B
C++
11 lines
219 B
C++
#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();
|
|
}
|