summaryrefslogtreecommitdiff
path: root/unloader.sce
diff options
context:
space:
mode:
authorrupak192020-04-22 17:41:02 +0530
committerrupak192020-04-22 17:41:02 +0530
commitebaf2d3f27b386ebcd2fbd511a9868ee842cac3f (patch)
treee8783ce2d1fcdceb16ddb32915c76535c62acce7 /unloader.sce
parentd6e8cfd86be242d0a1a09a1ef7d8b7f3d12af795 (diff)
downloadFOSSEE-Signal-Processing-Toolbox-ebaf2d3f27b386ebcd2fbd511a9868ee842cac3f.tar.gz
FOSSEE-Signal-Processing-Toolbox-ebaf2d3f27b386ebcd2fbd511a9868ee842cac3f.tar.bz2
FOSSEE-Signal-Processing-Toolbox-ebaf2d3f27b386ebcd2fbd511a9868ee842cac3f.zip
Minor corrections in macros sci files
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;