git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
translation update
[enigma2.git]
/
lib
/
python
/
python.h
diff --git
a/lib/python/python.h
b/lib/python/python.h
index f5f793ff0a7871018f6906193d934a7643971bb5..9edc50ada9dec481dd22967db3d501b2f5c0e400 100644
(file)
--- a/
lib/python/python.h
+++ b/
lib/python/python.h
@@
-4,9
+4,9
@@
#define __lib_python_python_class_h
#endif
#define __lib_python_python_class_h
#endif
+#include <Python.h>
#include <string>
#include <lib/base/object.h>
#include <string>
#include <lib/base/object.h>
-#include <Python.h>
#if !defined(SKIP_PART1) && !defined(SWIG)
class ePyObject
#if !defined(SKIP_PART1) && !defined(SWIG)
class ePyObject
@@
-314,10
+314,16
@@
inline ePyObject Impl_PyTuple_GET_ITEM(ePyObject list, unsigned int pos)
}
#endif
}
#endif
+inline void Impl_INCREF(PyObject *ob)
+{
+ Py_INCREF(ob);
+}
+
inline void Impl_DECREF(PyObject *ob)
{
Py_DECREF(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
#define Org_Py_DECREF(obj) Impl_DECREF(obj)
#undef Py_DECREF
#undef Py_XDECREF