php: Merge two identical typemaps
This commit is contained in:
parent
0bf846f56f
commit
2da0127f5f
1 changed files with 2 additions and 8 deletions
|
|
@ -110,14 +110,8 @@
|
||||||
}
|
}
|
||||||
%}
|
%}
|
||||||
|
|
||||||
%typemap(in) SWIGTYPE &
|
%typemap(in) SWIGTYPE &,
|
||||||
%{
|
SWIGTYPE &&
|
||||||
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 (SWIG_ConvertPtr(&$input, (void **) &$1, $1_descriptor, 0) < 0 || $1 == NULL) {
|
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");
|
SWIG_PHP_Error(E_ERROR, "Type error in argument $argnum of $symname. Expected $1_descriptor");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue