From: Marcelo M. <mar...@us...> - 2004-10-26 00:34:48
|
Update of /cvsroot/swig/SWIG/Lib/python In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9784 Modified Files: pyvaltypes.swg Log Message: fix for proper %apply Index: pyvaltypes.swg =================================================================== RCS file: /cvsroot/swig/SWIG/Lib/python/pyvaltypes.swg,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** pyvaltypes.swg 18 Oct 2004 00:31:23 -0000 1.13 --- pyvaltypes.swg 26 Oct 2004 00:34:18 -0000 1.14 *************** *** 24,31 **** %define PYVAL_OUT_TYPEMAP(from_meth,pyfrag,Type...) %typemap(out,fragment=pyfrag) Type, const Type ! { $result = from_meth(SWIG_static_cast($1,$basetype)); } %typemap(out,fragment=pyfrag) const Type& ! { $result = from_meth(SWIG_static_cast(*$1,$basetype)); } %enddef --- 24,31 ---- %define PYVAL_OUT_TYPEMAP(from_meth,pyfrag,Type...) %typemap(out,fragment=pyfrag) Type, const Type ! { $result = from_meth(SWIG_static_cast($1,Type)); } %typemap(out,fragment=pyfrag) const Type& ! { $result = from_meth(SWIG_static_cast(*$1,Type)); } %enddef |