diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-11-24 21:58:23 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-11-24 21:58:23 +0000 |
| commit | d9b91542e07a2296b69141433d863fe8028b148e (patch) | |
| tree | c72c08497b1fa207b11dad421085d6947ae66dab /lib/python/python.h | |
| parent | 4a2d077400b4db14df1d28d84f9c078392d4da28 (diff) | |
| download | enigma2-d9b91542e07a2296b69141433d863fe8028b148e.tar.gz enigma2-d9b91542e07a2296b69141433d863fe8028b148e.zip | |
remove non working python refcount debugging code
Diffstat (limited to 'lib/python/python.h')
| -rw-r--r-- | lib/python/python.h | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/lib/python/python.h b/lib/python/python.h index 27d2a9b1..46e1a03d 100644 --- a/lib/python/python.h +++ b/lib/python/python.h @@ -3,33 +3,10 @@ #include <string> #include <lib/base/object.h> -#include <Python.h> -// useable for debugging python refcounting -#undef Py_DECREF -#undef Py_XDECREF -#undef Py_INCREF -#undef Py_XINCREF -#define Py_XDECREF(obj) Impl_Py_XDECREF(__FILE__, __LINE__, obj) -#define Py_DECREF(obj) Impl_Py_DECREF(__FILE__, __LINE__, obj) -#define Py_XINCREF(obj) Impl_Py_XINCREF(__FILE__, __LINE__, obj) -#define Py_INCREF(obj) Impl_Py_INCREF(__FILE__, __LINE__, obj) - -void Impl_Py_DECREF(const char* file, int line, PyObject *obj); - -inline void Impl_Py_XDECREF(const char* file, int line, PyObject *obj) -{ - if (obj) - Impl_Py_DECREF(file, line, obj); -} +typedef struct _object PyObject; -void Impl_Py_INCREF(const char* file, int line, PyObject *obj); - -inline void Impl_Py_XINCREF(const char* file, int line, PyObject *obj) -{ - if (obj) - Impl_Py_INCREF(file, line, obj); -} +// useable for debugging python refcounting extern PyObject *New_TestObj(); |
