Member function pointer typemap tweaks
Use sizeof variable name rather than variable type. Workaround Visual C++ unable to parse some complex C++11 types, such as sizeof(short (Funcs::*)(bool) const &&)
This commit is contained in:
parent
abcae7c68b
commit
13158bda9a
5 changed files with 19 additions and 19 deletions
|
|
@ -95,7 +95,7 @@
|
|||
"sv_setiv(SvRV($result), PTR2IV(&$1));";
|
||||
|
||||
%typemap(varout,type="$1_descriptor") SWIGTYPE (CLASS::*) {
|
||||
SWIG_MakePackedObj($result, (void *) &$1, sizeof($1_type), $1_descriptor);
|
||||
SWIG_MakePackedObj($result, (void *) &$1, sizeof($1), $1_descriptor);
|
||||
}
|
||||
|
||||
%typemap(varout) SWIGTYPE *const = SWIGTYPE *;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue