| 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) { |
nothing calls this directly
no outgoing calls
no test coverage detected