Eliminate non-standard $lower_param typemap variable

This commit is contained in:
Olly Betts 2021-04-13 10:03:03 +12:00
commit 60e7deda2c
2 changed files with 2 additions and 7 deletions

View file

@ -148,12 +148,8 @@
%typemap(in) SWIGTYPE *DISOWN
%{
if ($needNewFlow) {
SWIG_Z_FETCH_OBJ_P(&$input)->newobject = 0;
$1 = ($lower_param *)SWIG_Z_FETCH_OBJ_P(&$input)->ptr;
} else {
if (SWIG_ConvertPtr(&$input, (void **) &$1, $1_descriptor, SWIG_POINTER_DISOWN ) < 0)
SWIG_PHP_Error(E_ERROR, "Type error in argument $argnum of $symname. Expected $1_descriptor");
if (SWIG_ConvertPtr(&$input, (void **) &$1, $1_descriptor, SWIG_POINTER_DISOWN) < 0) {
SWIG_PHP_Error(E_ERROR, "Type error in argument $argnum of $symname. Expected $1_descriptor");
}
%}