MCPcopy Create free account
hub / github.com/pybind/pybind11 / PYBIND11_MODULE

Function PYBIND11_MODULE

tests/test_cmake_build/main.cpp:4–6  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2namespace py = pybind11;
3
4PYBIND11_MODULE(test_cmake_build, m, py::mod_gil_not_used()) {
5 m.def("add", [](int i, int j) { return i + j; });
6}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected