From 6508e06af8f311ac4407ba649d7f5ab62c86ae89 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Wed, 2 Nov 2005 15:55:17 +0000 Subject: [PATCH] add the PyObject **PYTHON_SELF typemap(in) git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7774 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Lib/python/pytypemaps.swg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SWIG/Lib/python/pytypemaps.swg b/SWIG/Lib/python/pytypemaps.swg index 74761e16b..692f5b320 100644 --- a/SWIG/Lib/python/pytypemaps.swg +++ b/SWIG/Lib/python/pytypemaps.swg @@ -69,6 +69,10 @@ * Python extra typemaps * ------------------------------------------------------------ */ +/* Get the address of the 'python self' object */ + +%typemap(in,numinputs=0) PyObject **PYTHON_SELF "$1 = &obj0;"; + /* Consttab, needed for callbacks, it should be removed later */ %typemap(consttab) SWIGTYPE ((*)(ANY))