X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2Fpython.h;fp=lib%2Fpython%2Fpython.h;h=9edc50ada9dec481dd22967db3d501b2f5c0e400;hp=76f6aa88b03ee9df28ffaba1e0451004729ff2f5;hb=6f73e6abddf4170357c490966d0e1c622eb376f5;hpb=84781c10a768b91a02151b202c76b52b1c5789c2 diff --git a/lib/python/python.h b/lib/python/python.h index 76f6aa8..9edc50a 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