[php] Fix misleadingly indented void* in typemap
This commit is contained in:
parent
76c2c4675b
commit
c882f39e3c
1 changed files with 7 additions and 6 deletions
|
|
@ -146,12 +146,13 @@
|
||||||
|
|
||||||
%typemap(in) void *
|
%typemap(in) void *
|
||||||
%{
|
%{
|
||||||
if (SWIG_ConvertPtr(&$input, (void **) &$1, 0, 0) < 0) {
|
if (SWIG_ConvertPtr(&$input, (void **) &$1, 0, 0) < 0) {
|
||||||
/* Allow NULL from php for void* */
|
/* Allow NULL from php for void* */
|
||||||
if (Z_ISNULL($input)) $1=0;
|
if (Z_ISNULL($input))
|
||||||
else
|
$1=0;
|
||||||
SWIG_PHP_Error(E_ERROR, "Type error in argument $argnum of $symname. Expected $1_descriptor");
|
else
|
||||||
}
|
SWIG_PHP_Error(E_ERROR, "Type error in argument $argnum of $symname. Expected $1_descriptor");
|
||||||
|
}
|
||||||
%}
|
%}
|
||||||
|
|
||||||
/* Special case when void* is passed by reference so it can be made to point
|
/* Special case when void* is passed by reference so it can be made to point
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue