summaryrefslogtreecommitdiff
path: root/sci_gateway/cpp
diff options
context:
space:
mode:
authorrupak2019-10-16 15:35:12 +0530
committerrupak2019-10-16 15:35:12 +0530
commit055350439cbfcbeda69aa7355b5d0c8a384fd09c (patch)
treee8df0b962edb74b826f17ef91bad96ef24978ce1 /sci_gateway/cpp
parent8021ad69fd497fd8a92c338de7e6230194eef3fb (diff)
downloadfossee-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-xsci_gateway/cpp/libscilab_octave.sobin17160 -> 17160 bytes
-rw-r--r--sci_gateway/cpp/sci_octave.cpp5
2 files changed, 5 insertions, 0 deletions
diff --git a/sci_gateway/cpp/libscilab_octave.so b/sci_gateway/cpp/libscilab_octave.so
index 1c7e6cb..3a2f181 100755
--- a/sci_gateway/cpp/libscilab_octave.so
+++ b/sci_gateway/cpp/libscilab_octave.so
Binary files differ
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);