Replaces a capsule's pointer *without* calling the destructor on the existing one.
| 2106 | |
| 2107 | /// Replaces a capsule's pointer *without* calling the destructor on the existing one. |
| 2108 | void set_pointer(const void *value) { |
| 2109 | if (PyCapsule_SetPointer(m_ptr, const_cast<void *>(value)) != 0) { |
| 2110 | throw error_already_set(); |
| 2111 | } |
| 2112 | } |
| 2113 | |
| 2114 | const char *name() const { |
| 2115 | const char *name = PyCapsule_GetName(m_ptr); |
nothing calls this directly
no outgoing calls
no test coverage detected