#include <pybind11/pybind11.h> int add(int i, int j) { return i + j + 1; } PYBIND11_MODULE(library, m) { m.doc() = "pybind11 example plugin"; m.def("add", &add, "A function which adds two numbers"); }