summaryrefslogtreecommitdiff
path: root/loader.sce
diff options
context:
space:
mode:
authoryash11122017-06-19 05:40:46 +0530
committeryash11122017-06-19 05:40:46 +0530
commit369c257b9ae0320621b43ca75b38ff66cc13f37b (patch)
treeb100ab94e7ea15a310be05ee8b647c43c2317fb7 /loader.sce
parentb33afdb2311fbe8aad4c5c614c6098585fe2d279 (diff)
downloadscilab2c-369c257b9ae0320621b43ca75b38ff66cc13f37b.tar.gz
scilab2c-369c257b9ae0320621b43ca75b38ff66cc13f37b.tar.bz2
scilab2c-369c257b9ae0320621b43ca75b38ff66cc13f37b.zip
1.3 new scilab-arduino functions added2. all functions have been tested on hardware 3. 5 i2c library functions added 4. Now generates code for 27 Boards(arduino and lilypad). 5. New GUI
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 061021cb..92d68830 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");