Searched refs:def_capsule (Results 1 – 1 of 1) sorted by relevance
241 … py::capsule def_capsule(def, [](void *ptr) { delete reinterpret_cast<PyMethodDef *>(ptr); }); in TEST_SUBMODULE() local242 … return py::reinterpret_steal<py::object>(PyCFunction_NewEx(def, def_capsule.ptr(), m.ptr())); in TEST_SUBMODULE()