improve pybind11

pull/49/head
ruki 5 years ago
parent 4bea5054f3
commit 89b9724760
No known key found for this signature in database
GPG Key ID: 809EF06AD42725BD
  1. 5
      packages/p/pybind11/xmake.lua

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

Loading…
Cancel
Save