*/
+%define RefCount(...)
+%typemap(newfree) __VA_ARGS__ * { eDebug("adding ref"); $1->AddRef(); }
+%extend __VA_ARGS__ { ~__VA_ARGS__() { eDebug("removing ref!"); self->Release(); } }
+%ignore __VA_ARGS__::~__VA_ARGS__();
+%enddef
%module enigma
%{
extern PSignal1<void,int> &keyPressedSignal();
%}
+RefCount(eListboxPythonStringContent)
+
#define DEBUG
%include "stl.i"
%include <lib/base/object.h>