fix for proper %apply

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6513 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-10-26 00:34:18 +00:00
commit 7c924a5636

View file

@ -23,10 +23,10 @@
%define PYVAL_OUT_TYPEMAP(from_meth,pyfrag,Type...)
%typemap(out,fragment=pyfrag) Type, const Type
{ $result = from_meth(SWIG_static_cast($1,$basetype)); }
{ $result = from_meth(SWIG_static_cast($1,Type)); }
%typemap(out,fragment=pyfrag) const Type&
{ $result = from_meth(SWIG_static_cast(*$1,$basetype)); }
{ $result = from_meth(SWIG_static_cast(*$1,Type)); }
%enddef
/* varin */