summaryrefslogtreecommitdiff
path: root/share/swig/2.0.11/ruby/exception.i
diff options
context:
space:
mode:
Diffstat (limited to 'share/swig/2.0.11/ruby/exception.i')
-rw-r--r--share/swig/2.0.11/ruby/exception.i5
1 files changed, 5 insertions, 0 deletions
diff --git a/share/swig/2.0.11/ruby/exception.i b/share/swig/2.0.11/ruby/exception.i
new file mode 100644
index 0000000..1e80d96
--- /dev/null
+++ b/share/swig/2.0.11/ruby/exception.i
@@ -0,0 +1,5 @@
+%include <typemaps/exception.swg>
+
+%insert("runtime") {
+ %define_as(SWIG_exception(code, msg), %block(%error(code, msg);))
+}