add a dummy class to debug python refcounting (add entrys of TestObj to your tuple...
[enigma2.git] / lib / python / python.cpp
index 642d70ba9f3072f26e4773dbc8151453abb7b7f0..f467bc86dc7d1a63a4827e72d38c4e5901a7f715 100644 (file)
@@ -4,6 +4,18 @@
 
 extern "C" void init_enigma();
 
 
 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)
 {
 #if 0
 ePyObject::ePyObject(void *ptr): m_object(ptr)
 {