summaryrefslogtreecommitdiff
path: root/sci_gateway/cpp/sci_octave.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/sci_octave.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/sci_octave.cpp')
-rw-r--r--sci_gateway/cpp/sci_octave.cpp5
1 files changed, 5 insertions, 0 deletions
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);