summaryrefslogtreecommitdiff
path: root/2.3-1/loader.sce
diff options
context:
space:
mode:
authorSiddhesh Wani2017-06-20 14:50:21 +0530
committerGitHub2017-06-20 14:50:21 +0530
commit2859e00d3f1da2d4b5b47514161bf0c63fcef83f (patch)
tree42fc74d21d1506f2e69359f4083e2d17b4328394 /2.3-1/loader.sce
parent02a004ea1500c403ac1a18a52aaf79aaeb7280ed (diff)
parent3121a1f5a8203bfd14d46f71930ac5cd22afdf7d (diff)
downloadScilab2C-2859e00d3f1da2d4b5b47514161bf0c63fcef83f.tar.gz
Scilab2C-2859e00d3f1da2d4b5b47514161bf0c63fcef83f.tar.bz2
Scilab2C-2859e00d3f1da2d4b5b47514161bf0c63fcef83f.zip
Merge pull request #6 from yash1112/master
Merged with Yash's work. GUI updated for selecting Arduino boards. More functions for Arduino added.
Diffstat (limited to '2.3-1/loader.sce')
-rw-r--r--2.3-1/loader.sce18
1 files changed, 4 insertions, 14 deletions
diff --git a/2.3-1/loader.sce b/2.3-1/loader.sce
index 061021cb..92d68830 100644
--- a/2.3-1/loader.sce
+++ b/2.3-1/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");