can't use as_voidptrptr with fcnptrs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7896 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
cde464feae
commit
255296362f
1 changed files with 3 additions and 3 deletions
|
|
@ -393,7 +393,7 @@
|
||||||
some providences.
|
some providences.
|
||||||
*/
|
*/
|
||||||
%typemap(in, noblock=1) SWIGTYPE ((*)(ANY)) {
|
%typemap(in, noblock=1) SWIGTYPE ((*)(ANY)) {
|
||||||
if (SWIG_ConvertFunctionPtr($input, %as_voidptrptr(&$1), $descriptor) != SWIG_OK) {
|
if (SWIG_ConvertFunctionPtr($input, (void**)(&$1), $descriptor) != SWIG_OK) {
|
||||||
%argument_fail(SWIG_TypeError,"$type",$argnum);
|
%argument_fail(SWIG_TypeError,"$type",$argnum);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -410,7 +410,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
%typemap(varin,noblock=1) SWIGTYPE ((*)(ANY)) {
|
%typemap(varin,noblock=1) SWIGTYPE ((*)(ANY)) {
|
||||||
if (SWIG_ConvertFunctionPtr($input, %as_voidptrptr(&$1), $descriptor) != SWIG_OK) {
|
if (SWIG_ConvertFunctionPtr($input, (void**)(&$1), $descriptor) != SWIG_OK) {
|
||||||
%variable_fail(SWIG_TypeError, "$type", "$name");
|
%variable_fail(SWIG_TypeError, "$type", "$name");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -434,7 +434,7 @@
|
||||||
/* directorout */
|
/* directorout */
|
||||||
|
|
||||||
%typemap(directorout,noblock=1) SWIGTYPE ((*)(ANY)) {
|
%typemap(directorout,noblock=1) SWIGTYPE ((*)(ANY)) {
|
||||||
if (SWIG_ConvertFunctionPtr($input,%as_voidptrptr(&$result),$descriptor) != SWIG_OK) {
|
if (SWIG_ConvertFunctionPtr($input,(void**)(&$result),$descriptor) != SWIG_OK) {
|
||||||
%dirout_fail(SWIG_TypeError,"$type");
|
%dirout_fail(SWIG_TypeError,"$type");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue