blob: 4996ac3718db7410ebc7e4dc4239494a539284c2 [file] [log] [blame]
#include <pybind11/pybind11.h>
int add(int i, int j) {
return i + j;
}
PYBIND11_MODULE(basic, module) {
module.doc() = "A basic pybind11 extension";
module.def("add", &add, "A function that adds two numbers");
}