summaryrefslogtreecommitdiff
path: root/src/Scilab2C/GeneralFunctions/SCI2Cerror.sci
diff options
context:
space:
mode:
authornutricato2007-07-13 10:05:19 +0000
committernutricato2007-07-13 10:05:19 +0000
commit769a693491664ef96d6c4acc35245e1202ce572e (patch)
tree623b98d1d4b21f6b8f5cc2ca14c0487646852d68 /src/Scilab2C/GeneralFunctions/SCI2Cerror.sci
parentc0723e47c05ef92516df10c86db892c8472bfa6b (diff)
downloadscilab2c-769a693491664ef96d6c4acc35245e1202ce572e.tar.gz
scilab2c-769a693491664ef96d6c4acc35245e1202ce572e.tar.bz2
scilab2c-769a693491664ef96d6c4acc35245e1202ce572e.zip
Diffstat (limited to 'src/Scilab2C/GeneralFunctions/SCI2Cerror.sci')
-rw-r--r--src/Scilab2C/GeneralFunctions/SCI2Cerror.sci11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Scilab2C/GeneralFunctions/SCI2Cerror.sci b/src/Scilab2C/GeneralFunctions/SCI2Cerror.sci
new file mode 100644
index 00000000..444dcff5
--- /dev/null
+++ b/src/Scilab2C/GeneralFunctions/SCI2Cerror.sci
@@ -0,0 +1,11 @@
+function SCI2Cerror(errorstring);
+// function SCI2Cerror(errorstring);
+// -----------------------------------------------------------------
+// It is the error function but before issuing the error, perorms
+// the mclose('all');
+// 02-May-2006 -- Nutricato Raffaele: Author.
+// -----------------------------------------------------------------
+
+mclose('all')
+error('###########SCI2C_ERROR: '+errorstring);
+endfunction