diff options
author | Xavier Delacour <xavier.delacour@gmail.com> | 2008-03-01 23:35:44 +0000 |
---|---|---|
committer | Xavier Delacour <xavier.delacour@gmail.com> | 2008-03-01 23:35:44 +0000 |
commit | 393391965c4583923d23958a483dabd316d425f6 (patch) | |
tree | a4b0d0884436413c9b36be2e01dc7672813baad9 /Lib/octave/exception.i | |
parent | 50b1578e19c1fe821697c75ffac87f3624f810a8 (diff) | |
download | swig-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.i | 6 |
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; )) +} |