Replace BLI_INLINE w/ Py_LOCAL_INLINE for Python

Recent inclusion caused build error with the BGE.
This commit is contained in:
2017-08-20 21:14:33 +10:00
parent f6825d333b
commit e27a59d411
2 changed files with 5 additions and 6 deletions

View File

@@ -42,10 +42,10 @@ extern "C" {
/* wrap Py_INCREF & return the result,
* use sparingly to avoid comma operator or temp var assignment */
BLI_INLINE PyObject *Py_INCREF_RET(PyObject *op) { Py_INCREF(op); return op; }
Py_LOCAL_INLINE(PyObject *)Py_INCREF_RET(PyObject *op) { Py_INCREF(op); return op; }
/* append & transfer ownership to the list, avoids inline Py_DECREF all over (which is quite a large macro) */
BLI_INLINE int PyList_APPEND(PyObject *op, PyObject *v)
Py_LOCAL_INLINE(int) PyList_APPEND(PyObject *op, PyObject *v)
{
int ret = PyList_Append(op, v);
Py_DecRef(v);