| 128 | }; |
| 129 | |
| 130 | void nb_ndarray_dealloc(PyObject* self) |
| 131 | { |
| 132 | ndarray_dec_ref(((nb_ndarray*)self)->th); |
| 133 | |
| 134 | freefunc tp_free; |
| 135 | #if defined(Py_LIMITED_API) |
| 136 | tp_free = (freefunc)PyType_GetSlot(Py_TYPE(self), Py_tp_free); |
| 137 | #else |
| 138 | tp_free = Py_TYPE(self)->tp_free; |
| 139 | #endif |
| 140 | |
| 141 | tp_free(self); |
| 142 | } |
| 143 | |
| 144 | int nb_ndarray_getbuffer(PyObject* exporter, Py_buffer* view, int) |
| 145 | { |
nothing calls this directly
no test coverage detected