Add typemap for returning enum from function
This commit is contained in:
parent
f48e95cb47
commit
e2cc98ffc1
1 changed files with 7 additions and 0 deletions
|
|
@ -274,6 +274,13 @@
|
|||
* ----------------------------------------------------------------------------- */
|
||||
%scilab_varout_typemap(constcode, SwigScilabInt32FromEnum, enum SWIGTYPE);
|
||||
|
||||
%typemap(out, fragment="SwigScilabInt32FromEnum") enum SWIGTYPE {
|
||||
if (SwigScilabInt32FromEnum(pvApiCtx, $result, $1) != SWIG_OK)
|
||||
{
|
||||
return SWIG_ERROR;
|
||||
}
|
||||
}
|
||||
|
||||
/* -----------------------------------------------------------------------------*/
|
||||
/* Typecheck typemaps */
|
||||
/* -----------------------------------------------------------------------------*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue