Fixed to DYNAMIC typemaps.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4173 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c048546bde
commit
ba2383f9db
1 changed files with 5 additions and 0 deletions
|
|
@ -159,6 +159,11 @@
|
|||
%typemap(out) SWIGTYPE *, SWIGTYPE &, SWIGTYPE []
|
||||
"Tcl_SetObjResult(interp,SWIG_NewInstanceObj(interp, (void *) $1, $1_descriptor,0));";
|
||||
|
||||
%typemap(out) SWIGTYPE *DYNAMIC, SWIGTYPE &DYNAMIC {
|
||||
swig_type_info *ty = SWIG_TypeDynamicCast($1_descriptor,(void **) &$1);
|
||||
Tcl_SetObjResult(interp,SWIG_NewInstanceObj((void *) $1, ty,0));
|
||||
}
|
||||
|
||||
%typemap(out) void "";
|
||||
|
||||
/* Primitive types--return by value */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue