summaryrefslogtreecommitdiff
path: root/2.3-1/loader.sce
diff options
context:
space:
mode:
Diffstat (limited to '2.3-1/loader.sce')
-rw-r--r--2.3-1/loader.sce18
1 files changed, 14 insertions, 4 deletions
diff --git a/2.3-1/loader.sce b/2.3-1/loader.sce
index ddfe6370..061021cb 100644
--- a/2.3-1/loader.sce
+++ b/2.3-1/loader.sce
@@ -1,10 +1,20 @@
// 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");
+ exec(get_absolute_file_path("loader.sce")+"etc/"+"scilab2c.start");
catch
- error("Scilab 5.0 or more is required.");
-end;
+ [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;
-exec(get_absolute_file_path("loader.sce")+"etc\"+"scilab2c.start");