diff options
Diffstat (limited to 'numpy/core')
-rw-r--r-- | numpy/core/include/numpy/npy_3kcompat.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/numpy/core/include/numpy/npy_3kcompat.h b/numpy/core/include/numpy/npy_3kcompat.h index 3c67a2559..074f2ce23 100644 --- a/numpy/core/include/numpy/npy_3kcompat.h +++ b/numpy/core/include/numpy/npy_3kcompat.h @@ -269,6 +269,12 @@ NpyCapsule_AsVoidPtr(PyObject *obj) return ret; } +static NPY_INLINE void * +NpyCapsule_GetDesc(PyObject *obj) +{ + return PyCapsule_GetContext(obj); +} + static NPY_INLINE int NpyCapsule_Check(PyObject *ptr) { @@ -302,6 +308,12 @@ NpyCapsule_AsVoidPtr(PyObject *ptr) return PyCObject_AsVoidPtr(ptr); } +static NPY_INLINE void * +NpyCapsule_GetDesc(PyObject *obj) +{ + return PyCObject_GetDesc(obj); +} + static NPY_INLINE int NpyCapsule_Check(PyObject *ptr) { |