add missing typecheck typemap for function ptrs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7779 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
516450c27a
commit
b8449ebb72
1 changed files with 6 additions and 0 deletions
|
|
@ -383,6 +383,12 @@
|
|||
}
|
||||
%typemap(freearg) SWIGTYPE ((*)(ANY)) "";
|
||||
|
||||
%typecheck(SWIG_TYPECHECK_POINTER,noblock=1) SWIGTYPE ((*)(ANY)) {
|
||||
void *ptr = 0;
|
||||
$1 = (SWIG_ConvertFunctionPtr($input, &ptr, $descriptor) == SWIG_OK);
|
||||
}
|
||||
|
||||
|
||||
%typemap(out, noblock=1) SWIGTYPE ((*)(ANY)) {
|
||||
%set_output(SWIG_NewFunctionPtrObj((void *)($1), $descriptor));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue