From 9289748ceda0195c346437632be8558587441287 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Tue, 10 Jan 2006 14:23:28 +0000 Subject: add a dummy class to debug python refcounting (add entrys of TestObj to your tuple or list) include and use New_TestObj to create a testobject.. --- lib/python/python.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib/python/python.cpp') 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) { -- cgit v1.2.3