Fix overloading for non-pointers and NULL - Scilab
This commit is contained in:
parent
f181d20dd1
commit
b48339cfca
2 changed files with 49 additions and 1 deletions
|
|
@ -303,7 +303,10 @@ SwigScilabPtrToObject(void *pvApiCtx, int iVar, void **pvObj, swig_type_info *de
|
|||
|
||||
if (pvObj) {
|
||||
*pvObj = pvPtr;
|
||||
return SWIG_OK;
|
||||
if (pvPtr)
|
||||
return SWIG_OK;
|
||||
else
|
||||
return (flags & SWIG_POINTER_NO_NULL) ? SWIG_NullReferenceError : SWIG_OK;
|
||||
}
|
||||
else {
|
||||
return SWIG_ERROR;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue