diff options
author | Simon Marchetto <simon.marchetto@scilab-enterprises.com> | 2014-08-08 15:24:35 +0200 |
---|---|---|
committer | Simon Marchetto <simon.marchetto@scilab-enterprises.com> | 2014-08-08 15:24:35 +0200 |
commit | d89c2f15a0a37e19c072f10be25a9525c7906bde (patch) | |
tree | 37d89c84cea07b109aeaae85f27dca40f6f38593 /Lib/scilab/scidouble.swg | |
parent | 9b427cc2e007706ff2d039c99e0107f46a8d1225 (diff) | |
download | swig-d89c2f15a0a37e19c072f10be25a9525c7906bde.tar.gz |
scilab: use a macro instead of 999 for error code
Diffstat (limited to 'Lib/scilab/scidouble.swg')
-rw-r--r-- | Lib/scilab/scidouble.swg | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/scilab/scidouble.swg b/Lib/scilab/scidouble.swg index 269cb5900..f7385d0fc 100644 --- a/Lib/scilab/scidouble.swg +++ b/Lib/scilab/scidouble.swg @@ -18,12 +18,12 @@ SWIG_SciDouble_AsDouble(void *pvApiCtx, SwigSciObject iVar, double *pdblValue, c } if (!isDoubleType(pvApiCtx, piAddrVar) || isVarComplex(pvApiCtx, piAddrVar)) { - Scierror(999, _("%s: Wrong type for input argument #%d: A real expected.\n"), fname, iVar); + Scierror(SCILAB_API_ARGUMENT_ERROR, _("%s: Wrong type for input argument #%d: A real expected.\n"), fname, iVar); return SWIG_ERROR; } if (!isScalar(pvApiCtx, piAddrVar)) { - Scierror(999, _("%s: Wrong size for input argument #%d: A real expected.\n"), fname, iVar); + Scierror(SCILAB_API_ARGUMENT_ERROR, _("%s: Wrong size for input argument #%d: A real expected.\n"), fname, iVar); return SWIG_ERROR; } @@ -72,7 +72,7 @@ SWIG_SciDouble_AsDoubleArrayAndSize(void *pvApiCtx, int iVar, int *iRows, int *i } } else { - Scierror(999, _("%s: Wrong type for input argument #%d: A real matrix expected.\n"), fname, iVar); + Scierror(SCILAB_API_ARGUMENT_ERROR, _("%s: Wrong type for input argument #%d: A real matrix expected.\n"), fname, iVar); return SWIG_ERROR; } |