Scilab: list helper getScilabListAndSize()
This commit is contained in:
parent
e1264181a0
commit
c4fb9f00c8
1 changed files with 21 additions and 0 deletions
|
|
@ -43,6 +43,27 @@ SWIG_GetScilabListSize(SciObject _obj, int *_piListSize)
|
|||
return SWIG_OK;
|
||||
}
|
||||
|
||||
SWIGINTERN int
|
||||
SWIG_GetScilabListAndSize(SciObject _obj, int **_piListAddr, int *_piListSize)
|
||||
{
|
||||
SciErr sciErr;
|
||||
|
||||
sciErr = getVarAddressFromPosition(pvApiCtx, _obj, _piListAddr);
|
||||
if (sciErr.iErr)
|
||||
{
|
||||
printError(&sciErr, 0);
|
||||
return SWIG_ERROR;
|
||||
}
|
||||
|
||||
sciErr = getListItemNumber(pvApiCtx, *_piListAddr, _piListSize);
|
||||
if (sciErr.iErr)
|
||||
{
|
||||
printError(&sciErr, 0);
|
||||
return SWIG_ERROR;
|
||||
}
|
||||
|
||||
return SWIG_OK;
|
||||
}
|
||||
|
||||
SWIGINTERN int
|
||||
SWIG_CheckScilabList(SciObject _obj)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue