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:
parent
07dd64849d
commit
61d761ece1
1 changed files with 7 additions and 0 deletions
|
|
@ -639,6 +639,13 @@ like Python objects, although some functionality may be different.";
|
||||||
$target = Swig_PyDOH_new($source);
|
$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
|
%title "SWIG", after
|
||||||
|
|
||||||
%section "DOH Objects", before
|
%section "DOH Objects", before
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue