Merge 2 functionally identical typemaps

The only difference is code formatting.
This commit is contained in:
Olly Betts 2021-04-13 09:52:43 +12:00
commit d2eb06fbc0

View file

@ -121,17 +121,8 @@
}
%}
%typemap(in) SWIGTYPE &
%{
if ($needNewFlow) {
$1 = ($1_ltype) $obj_value;
} else {
if (SWIG_ConvertPtr(&$input, (void **) &$1, $1_descriptor, 0) < 0 || $1 == NULL)
SWIG_PHP_Error(E_ERROR, "Type error in argument $argnum of $symname. Expected $1_descriptor");
}
%}
%typemap(in) SWIGTYPE &&
%typemap(in) SWIGTYPE &,
SWIGTYPE &&
%{
if ($needNewFlow) {
$1 = ($1_ltype) $obj_value;