diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-08-20 14:14:33 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-08-20 14:14:33 +0300 |
commit | e27a59d411a1ec69b54ee0f1d88997db086bb996 (patch) | |
tree | 77b98337df5dacb310961b31df3729aeccf6f197 /source/blender/python/generic/python_utildefines.h | |
parent | f6825d333bfe2d58227e5e7421cd8719d89cd59a (diff) |
Replace BLI_INLINE w/ Py_LOCAL_INLINE for Python
Recent inclusion caused build error with the BGE.
Diffstat (limited to 'source/blender/python/generic/python_utildefines.h')
-rw-r--r-- | source/blender/python/generic/python_utildefines.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/generic/python_utildefines.h b/source/blender/python/generic/python_utildefines.h index f7d3e7a8b4a..a7d82586dc0 100644 --- a/source/blender/python/generic/python_utildefines.h +++ b/source/blender/python/generic/python_utildefines.h @@ -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); |