Use standard SWIG overload dispatch

Instead of having a slightly modified PHP-specific variant of
Swig_overload_dispatch we now advance the ParmList over the this
pointer.
This commit is contained in:
Olly Betts 2021-03-29 17:30:30 +13:00
commit 3f1286ba4f
2 changed files with 14 additions and 178 deletions

View file

@ -117,7 +117,7 @@
if ($needNewFlow) {
$1 = ($1_ltype) $obj_value;
} else {
if (SWIG_ConvertPtr(&$linput, (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");
}
%}