summaryrefslogtreecommitdiff
path: root/2.3-1/unloader.sce
diff options
context:
space:
mode:
authoryash11122017-06-19 05:40:46 +0530
committeryash11122017-06-19 05:40:46 +0530
commit3121a1f5a8203bfd14d46f71930ac5cd22afdf7d (patch)
tree42fc74d21d1506f2e69359f4083e2d17b4328394 /2.3-1/unloader.sce
parent02a004ea1500c403ac1a18a52aaf79aaeb7280ed (diff)
downloadScilab2C-3121a1f5a8203bfd14d46f71930ac5cd22afdf7d.tar.gz
Scilab2C-3121a1f5a8203bfd14d46f71930ac5cd22afdf7d.tar.bz2
Scilab2C-3121a1f5a8203bfd14d46f71930ac5cd22afdf7d.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 '2.3-1/unloader.sce')
-rw-r--r--2.3-1/unloader.sce31
1 files changed, 7 insertions, 24 deletions
diff --git a/2.3-1/unloader.sce b/2.3-1/unloader.sce
index e4ec09c7..a8bf1673 100644
--- a/2.3-1/unloader.sce
+++ b/2.3-1/unloader.sce
@@ -1,31 +1,14 @@
// 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
- // Unregister the library of macros. This does not unregister its macros
- clear scilab2clib
- // Del help chapter
- if or(getscilabmode() == ["NW";"STD"]) then
- mprintf("\tRemove help chapter\n");
- del_help_chapter("scilab2c", %F);
- end
- // Remove Preferences GUI
- if getscilabmode() == "STD" then
- removeModulePreferences(get_absolute_file_path("unloader.sce"))
- end
- // TODO: detect and unlink related gateways
+ 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);
+ error("Scilab 5.4 or more is required.");
+end;
+
+fileQuit = get_absolute_file_path("unloader.sce") + "etc/" + "scilab2c.quit";
+if isfile(fileQuit) then
+ exec(fileQuit);
end
-lines(oldlines);
-mode(oldmode);
-clear oldlines oldmode;