|
@@ -20,11 +20,8 @@ package("pybind11")
|
|
|
int add(int i, int j) {
|
|
|
return i + j;
|
|
|
}
|
|
|
- namespace py = pybind11;
|
|
|
- PYBIND11_PLUGIN(example) {
|
|
|
- py::module m("example", "pybind11 example plugin");
|
|
|
+ PYBIND11_MODULE(example, m) {
|
|
|
m.def("add", &add, "A function which adds two numbers");
|
|
|
- return m.ptr();
|
|
|
}
|
|
|
]]}, {configs = {languages = "c++11"}}))
|
|
|
end)
|