NUMPY_API */
| 81 | |
| 82 | /*NUMPY_API */ |
| 83 | NPY_NO_EXPORT int |
| 84 | PyArray_SetUpdateIfCopyBase(PyArrayObject *arr, PyArrayObject *base) |
| 85 | { |
| 86 | /* 2021-Dec-15 1.23*/ |
| 87 | PyErr_SetString(PyExc_RuntimeError, |
| 88 | "PyArray_SetUpdateIfCopyBase is disabled, use " |
| 89 | "PyArray_SetWritebackIfCopyBase instead, and be sure to call " |
| 90 | "PyArray_ResolveWritebackIfCopy before the array is deallocated, " |
| 91 | "i.e. before the last call to Py_DECREF. If cleaning up from an " |
| 92 | "error, PyArray_DiscardWritebackIfCopy may be called instead to " |
| 93 | "throw away the scratch buffer."); |
| 94 | return -1; |
| 95 | } |
| 96 | |
| 97 | /*NUMPY_API |
| 98 | * |
nothing calls this directly
no outgoing calls
no test coverage detected