CheckRhs => CheckInputArgument + CheckLhs => CheckOutputArgument
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-scilab@13098 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
7444913fda
commit
efcb2aebed
2 changed files with 16 additions and 15 deletions
|
|
@ -12,8 +12,8 @@ int sci_sumitems(char *fname,unsigned long fname_len)
|
|||
int *piAddr = NULL;
|
||||
double* pdblReal = NULL;
|
||||
|
||||
CheckRhs(1,1);
|
||||
CheckLhs(1,1);
|
||||
CheckInputArgument(pvApiCtx, 1, 1);
|
||||
CheckOutputArgument(pvApiCtx, 1, 1);
|
||||
|
||||
SciErr sciErr;
|
||||
|
||||
|
|
@ -58,14 +58,14 @@ int sci_getValues(char *fname,unsigned long fname_len)
|
|||
int *piAddr = NULL;
|
||||
double* pdblReal = NULL;
|
||||
|
||||
CheckRhs(0,0);
|
||||
CheckLhs(1,1);
|
||||
CheckInputArgument(pvApiCtx, 0, 0);
|
||||
CheckOutputArgument(pvApiCtx, 1, 1);
|
||||
|
||||
SciErr sciErr;
|
||||
|
||||
|
||||
int numberRow, numberCol, i;
|
||||
double * matrix=getValues(&numberRow, &numberCol);
|
||||
double * matrix = getValues(&numberRow, &numberCol);
|
||||
|
||||
sciErr = createMatrixOfDouble(pvApiCtx, Rhs + 1, numberRow, numberCol, matrix);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue