Merge 2 functionally identical typemaps
The only difference is code formatting.
This commit is contained in:
parent
5161acdd24
commit
d2eb06fbc0
1 changed files with 2 additions and 11 deletions
|
|
@ -121,17 +121,8 @@
|
||||||
}
|
}
|
||||||
%}
|
%}
|
||||||
|
|
||||||
%typemap(in) SWIGTYPE &
|
%typemap(in) SWIGTYPE &,
|
||||||
%{
|
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 &&
|
|
||||||
%{
|
%{
|
||||||
if ($needNewFlow) {
|
if ($needNewFlow) {
|
||||||
$1 = ($1_ltype) $obj_value;
|
$1 = ($1_ltype) $obj_value;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue