summaryrefslogtreecommitdiff
path: root/Lib/scilab/sciruntime.swg
diff options
context:
space:
mode:
authorBaozeng Ding <sploving1@163.com>2009-06-20 02:44:06 +0000
committerBaozeng Ding <sploving1@163.com>2009-06-20 02:44:06 +0000
commited84d6b162c0352e1cc59e8ffc3843c648d20405 (patch)
treec4203b5d57a3cfb57c6b7f863c15d031f8f0fc96 /Lib/scilab/sciruntime.swg
parent4e9cbd8a7c3592a1caef5e84fb19792e86caccb0 (diff)
downloadswig-ed84d6b162c0352e1cc59e8ffc3843c648d20405.tar.gz
add support for Enums
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@11288 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Lib/scilab/sciruntime.swg')
-rw-r--r--Lib/scilab/sciruntime.swg9
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/scilab/sciruntime.swg b/Lib/scilab/sciruntime.swg
new file mode 100644
index 000000000..7df06aa5a
--- /dev/null
+++ b/Lib/scilab/sciruntime.swg
@@ -0,0 +1,9 @@
+%insert(runtime) %{
+
+void SWIG_Error(int code, const char *msg) {
+ Scierror(code,_("%s\n"),msg);
+}
+
+#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(999, msg); } else
+
+%}