Strategies for finding binary dependencies
1// © Vlad-Stefan Harbuz <vlad@vlad.website>
2// SPDX-License-Identifier: Apache-2.0
3
4#include <pybind11/pybind11.h>
5
6namespace py = pybind11;
7
8int add(int i, int j) {
9 return i + j;
10}
11
12PYBIND11_MODULE(example, m, py::mod_gil_not_used()) {
13 m.doc() = "pybind11 example plugin"; // optional module docstring
14
15 m.def("add", &add, "A function that adds two numbers");
16}