summaryrefslogtreecommitdiff
path: root/Lib/octave/exception.i
diff options
context:
space:
mode:
authorXavier Delacour <xavier.delacour@gmail.com>2008-03-01 23:35:44 +0000
committerXavier Delacour <xavier.delacour@gmail.com>2008-03-01 23:35:44 +0000
commit393391965c4583923d23958a483dabd316d425f6 (patch)
treea4b0d0884436413c9b36be2e01dc7672813baad9 /Lib/octave/exception.i
parent50b1578e19c1fe821697c75ffac87f3624f810a8 (diff)
downloadswig-393391965c4583923d23958a483dabd316d425f6.tar.gz
Initial commit of Octave module.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10290 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Lib/octave/exception.i')
-rw-r--r--Lib/octave/exception.i6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/octave/exception.i b/Lib/octave/exception.i
new file mode 100644
index 000000000..bb0b15c9d
--- /dev/null
+++ b/Lib/octave/exception.i
@@ -0,0 +1,6 @@
+%include <typemaps/exception.swg>
+
+
+%insert("runtime") {
+ %define_as(SWIG_exception(code, msg), %block(%error(code, msg); SWIG_fail; ))
+}