diff options
author | rupak | 2019-10-16 15:35:12 +0530 |
---|---|---|
committer | rupak | 2019-10-16 15:35:12 +0530 |
commit | 055350439cbfcbeda69aa7355b5d0c8a384fd09c (patch) | |
tree | e8df0b962edb74b826f17ef91bad96ef24978ce1 /sci_gateway/cpp | |
parent | 8021ad69fd497fd8a92c338de7e6230194eef3fb (diff) | |
download | fossee-scilab-octave-toolbox-055350439cbfcbeda69aa7355b5d0c8a384fd09c.tar.gz fossee-scilab-octave-toolbox-055350439cbfcbeda69aa7355b5d0c8a384fd09c.tar.bz2 fossee-scilab-octave-toolbox-055350439cbfcbeda69aa7355b5d0c8a384fd09c.zip |
fixed handeling blank inputs to octave_fun
Diffstat (limited to 'sci_gateway/cpp')
-rwxr-xr-x | sci_gateway/cpp/libscilab_octave.so | bin | 17160 -> 17160 bytes | |||
-rw-r--r-- | sci_gateway/cpp/sci_octave.cpp | 5 |
2 files changed, 5 insertions, 0 deletions
diff --git a/sci_gateway/cpp/libscilab_octave.so b/sci_gateway/cpp/libscilab_octave.so Binary files differindex 1c7e6cb..3a2f181 100755 --- a/sci_gateway/cpp/libscilab_octave.so +++ b/sci_gateway/cpp/libscilab_octave.so diff --git a/sci_gateway/cpp/sci_octave.cpp b/sci_gateway/cpp/sci_octave.cpp index bf47b9e..44d1593 100644 --- a/sci_gateway/cpp/sci_octave.cpp +++ b/sci_gateway/cpp/sci_octave.cpp @@ -135,6 +135,11 @@ int sci_octave_fun(scilabEnv env, int nin, scilabVar* in, int nopt, scilabOpt* o } } + else + { + Scierror(999, _("%s: Wrong type of input argument %d.\n"), fname, i); + return STATUS_ERROR; + } } int status_fun = fun(argptr, funptr); |