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

Function name

include/pybind11/pytypes.h:2114–2120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2112 }
2113
2114 const char *name() const {
2115 const char *name = PyCapsule_GetName(m_ptr);
2116 if ((name == nullptr) && PyErr_Occurred()) {
2117 throw error_already_set();
2118 }
2119 return name;
2120 }
2121
2122 /// Replaces a capsule's name *without* calling the destructor on the existing one.
2123 void set_name(const char *new_name) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected