Wrapping pointer to member function types is likely to be rare, so use
%fragment to only pull in the required machinery if it is going to be used. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12145 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
3f1b4e40f3
commit
0d7863c810
4 changed files with 15 additions and 12 deletions
|
|
@ -362,7 +362,7 @@
|
|||
SWIG_SetPointerZval(return_value, (void *)&$1, $1_descriptor, $owner);
|
||||
}
|
||||
|
||||
%typemap(in) SWIGTYPE (CLASS::*)
|
||||
%typemap(in, fragment="swig_php_init_member_ptr") SWIGTYPE (CLASS::*)
|
||||
{
|
||||
void * p = (void*)zend_fetch_resource($input TSRMLS_CC, -1, SWIG_MEMBER_PTR, NULL, 1, le_member_ptr);
|
||||
memcpy(&$1, p, sizeof($1));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue