summaryrefslogtreecommitdiff
path: root/unloader.sce
diff options
context:
space:
mode:
Diffstat (limited to 'unloader.sce')
-rw-r--r--unloader.sce23
1 files changed, 16 insertions, 7 deletions
diff --git a/unloader.sce b/unloader.sce
index dea8f22..8021197 100644
--- a/unloader.sce
+++ b/unloader.sce
@@ -1,14 +1,23 @@
// This file is released under the 3-clause BSD license. See COPYING-BSD.
// Generated by builder.sce: Please, do not edit this file
+oldmode = mode(); mode(-1);
+oldlines = lines()(2); lines(0);
try
- getversion("scilab");
+ fileQuit = get_absolute_file_path("unloader.sce") + "etc/" + "FOSSEE_Signal_Processing_Toolbox.quit";
+ if isfile(fileQuit) then
+ exec(fileQuit);
+ end
catch
- error("Scilab 5.4 or more is required.");
-end;
-
-fileQuit = get_absolute_file_path("unloader.sce") + "etc/" + "FOSSEE_Signal_Processing_Toolbox.quit";
-if isfile(fileQuit) then
- exec(fileQuit);
+ [errmsg, tmp, nline, func] = lasterror()
+ msg = "%s: error on line #%d: ""%s""\n"
+ msg = msprintf(msg, func, nline, errmsg)
+ lines(oldlines)
+ mode(oldmode);
+ clear oldlines oldmode tmp nline func
+ error(msg);
end
+lines(oldlines);
+mode(oldmode);
+clear oldlines oldmode;