Use $1 instead of result in out typemaps
This commit is contained in:
parent
33feca7527
commit
49d5909b08
1 changed files with 2 additions and 2 deletions
|
|
@ -96,8 +96,8 @@
|
||||||
/* If exit was via exception, PHP NULL is returned so skip the conversion. */
|
/* If exit was via exception, PHP NULL is returned so skip the conversion. */
|
||||||
if (!EG(exception)) {
|
if (!EG(exception)) {
|
||||||
if ($needNewFlow) {
|
if ($needNewFlow) {
|
||||||
tmp = ($&1_ltype) &SWIG_Z_FETCH_OBJ_P(result)->ptr;
|
tmp = ($&1_ltype) &SWIG_Z_FETCH_OBJ_P($1)->ptr;
|
||||||
SWIG_Z_FETCH_OBJ_P(result)->newobject = 0;
|
SWIG_Z_FETCH_OBJ_P($1)->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");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue