Added a typemap

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@153 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dustin Mitchell 2000-01-25 00:31:15 +00:00
commit 61d761ece1

View file

@ -639,6 +639,13 @@ like Python objects, although some functionality may be different.";
$target = Swig_PyDOH_new($source);
}
%typemap(python,in) char * {
if (Swig_PyDOH_check($source))
$target = Char(((PyDOH *)$source)->doh);
else
$target = PyString_AsString($source);
}
%title "SWIG", after
%section "DOH Objects", before