// © Vlad-Stefan Harbuz // SPDX-License-Identifier: Apache-2.0 #include namespace py = pybind11; int add(int i, int j) { return i + j; } PYBIND11_MODULE(example, m, py::mod_gil_not_used()) { m.doc() = "pybind11 example plugin"; // optional module docstring m.def("add", &add, "A function that adds two numbers"); }