summaryrefslogtreecommitdiff
path: root/loader.sce
diff options
context:
space:
mode:
authorukashanoor2017-06-19 10:42:03 +0530
committerukashanoor2017-06-19 10:42:03 +0530
commit8e235230a4c16a042d2620fa7b58a9b0f4ba1914 (patch)
tree455eef81a4fda3d0737ffde5614c333ac8f56ed9 /loader.sce
parentb33afdb2311fbe8aad4c5c614c6098585fe2d279 (diff)
downloadScilab2C_fossee_old-8e235230a4c16a042d2620fa7b58a9b0f4ba1914.tar.gz
Scilab2C_fossee_old-8e235230a4c16a042d2620fa7b58a9b0f4ba1914.tar.bz2
Scilab2C_fossee_old-8e235230a4c16a042d2620fa7b58a9b0f4ba1914.zip
after if and for
Diffstat (limited to 'loader.sce')
-rw-r--r--loader.sce18
1 files changed, 4 insertions, 14 deletions
diff --git a/loader.sce b/loader.sce
index 061021c..92d6883 100644
--- a/loader.sce
+++ b/loader.sce
@@ -1,20 +1,10 @@
// 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
- exec(get_absolute_file_path("loader.sce")+"etc/"+"scilab2c.start");
+ getversion("scilab");
catch
- [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;
+ error("Scilab 5.0 or more is required.");
+end;
+exec(get_absolute_file_path("loader.sce")+"etc/"+"scilab2c.start");