Fix typemap formatting incosistencies

This commit is contained in:
Olly Betts 2021-04-13 10:31:22 +12:00
commit 762a309373

View file

@ -89,8 +89,9 @@
if ($needNewFlow) { if ($needNewFlow) {
$1 = *(($1_ltype *)$obj_value); $1 = *(($1_ltype *)$obj_value);
} else { } else {
if (SWIG_ConvertPtr(&$input, (void **) &tmp, $&1_descriptor, 0) < 0 || tmp == NULL) if (SWIG_ConvertPtr(&$input, (void **) &tmp, $&1_descriptor, 0) < 0 || tmp == NULL) {
SWIG_PHP_Error(E_ERROR, "Type error in argument $argnum of $symname. Expected $1&_descriptor"); SWIG_PHP_Error(E_ERROR, "Type error in argument $argnum of $symname. Expected $&1_descriptor");
}
$1 = *tmp; $1 = *tmp;
} }
%} %}
@ -103,8 +104,9 @@
tmp = ($&1_ltype) &SWIG_Z_FETCH_OBJ_P(result)->ptr; tmp = ($&1_ltype) &SWIG_Z_FETCH_OBJ_P(result)->ptr;
SWIG_Z_FETCH_OBJ_P(result)->newobject = 0; SWIG_Z_FETCH_OBJ_P(result)->newobject = 0;
} else { } else {
if (SWIG_ConvertPtr($input, (void **) &tmp, $&1_descriptor, 0) < 0 || tmp == NULL) if (SWIG_ConvertPtr($input, (void **) &tmp, $&1_descriptor, 0) < 0 || tmp == NULL) {
SWIG_PHP_Error(E_ERROR, "Type error in argument $argnum of $symname. Expected $&1_descriptor"); SWIG_PHP_Error(E_ERROR, "Type error in argument $argnum of $symname. Expected $&1_descriptor");
}
} }
$result = *tmp; $result = *tmp;
} }
@ -116,8 +118,9 @@
if ($needNewFlow) { if ($needNewFlow) {
$1 = ($1_ltype) $obj_value; $1 = ($1_ltype) $obj_value;
} else { } else {
if (SWIG_ConvertPtr(&$input, (void **) &$1, $1_descriptor, 0) < 0) if (SWIG_ConvertPtr(&$input, (void **) &$1, $1_descriptor, 0) < 0) {
SWIG_PHP_Error(E_ERROR, "Type error in argument $argnum of $symname. Expected $1_descriptor"); SWIG_PHP_Error(E_ERROR, "Type error in argument $argnum of $symname. Expected $1_descriptor");
}
} }
%} %}