aboutsummaryrefslogtreecommitdiff
path: root/lib/python/python.cpp
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-01-10 14:23:28 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-01-10 14:23:28 +0000
commit9289748ceda0195c346437632be8558587441287 (patch)
treee02bb25d4a78f226d0cd6634bb145b97f6af9c46 /lib/python/python.cpp
parent9ef4b143f371d6b1b38a3abebcf38b336e03a583 (diff)
downloadenigma2-9289748ceda0195c346437632be8558587441287.tar.gz
enigma2-9289748ceda0195c346437632be8558587441287.zip
add a dummy class to debug python refcounting (add entrys of TestObj to your tuple or list)
include <lib/python/python.h> and use New_TestObj to create a testobject..
Diffstat (limited to 'lib/python/python.cpp')
-rw-r--r--lib/python/python.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/python/python.cpp b/lib/python/python.cpp
index 642d70ba..f467bc86 100644
--- a/lib/python/python.cpp
+++ b/lib/python/python.cpp
@@ -4,6 +4,18 @@
extern "C" void init_enigma();
+DEFINE_REF(TestObj);
+
+TestObj::TestObj()
+{
+ eDebug("create %p", this);
+}
+
+TestObj::~TestObj()
+{
+ eDebug("destroy %p", this);
+}
+
#if 0
ePyObject::ePyObject(void *ptr): m_object(ptr)
{