PyObject_ReleaseBuffer is now PyBuffer_Release
This commit is contained in:
parent
843ce52a84
commit
21fcdfb2c2
|
@ -465,7 +465,7 @@ success.
|
|||
|
||||
::
|
||||
|
||||
void PyObject_ReleaseBuffer(PyObject *obj, Py_buffer *view)
|
||||
void PyBuffer_Release(PyObject *obj, Py_buffer *view)
|
||||
|
||||
This is a C-API version of the releasebuffer function call. It checks
|
||||
to make sure the object has the required function pointer and issues
|
||||
|
@ -935,7 +935,7 @@ from a Python object, obj would do the following:
|
|||
|
||||
/* After using the information and you don't need it anymore */
|
||||
|
||||
if (PyObject_ReleaseBuffer(obj, &view) < 0) {
|
||||
if (PyBuffer_Release(obj, &view) < 0) {
|
||||
/* error return */
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue