aboutsummaryrefslogtreecommitdiff
path: root/lib/python/python.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/python.h')
-rw-r--r--lib/python/python.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/python/python.h b/lib/python/python.h
index 76f6aa88..9edc50ad 100644
--- a/lib/python/python.h
+++ b/lib/python/python.h
@@ -314,10 +314,16 @@ inline ePyObject Impl_PyTuple_GET_ITEM(ePyObject list, unsigned int pos)
}
#endif
+inline void Impl_INCREF(PyObject *ob)
+{
+ Py_INCREF(ob);
+}
+
inline void Impl_DECREF(PyObject *ob)
{
Py_DECREF(ob);
}
+#define Org_Py_INCREF(obj) Impl_INCREF(obj)
#define Org_Py_DECREF(obj) Impl_DECREF(obj)
#undef Py_DECREF
#undef Py_XDECREF