summaryrefslogtreecommitdiff
path: root/share/swig/2.0.11/go/exception.i
diff options
context:
space:
mode:
Diffstat (limited to 'share/swig/2.0.11/go/exception.i')
-rw-r--r--share/swig/2.0.11/go/exception.i7
1 files changed, 7 insertions, 0 deletions
diff --git a/share/swig/2.0.11/go/exception.i b/share/swig/2.0.11/go/exception.i
new file mode 100644
index 0000000..5abd306
--- /dev/null
+++ b/share/swig/2.0.11/go/exception.i
@@ -0,0 +1,7 @@
+%typemap(throws,noblock=1) (...) {
+ SWIG_exception(SWIG_RuntimeError,"unknown exception");
+}
+
+%insert("runtime") %{
+#define SWIG_exception(code, msg) _swig_gopanic(msg)
+%}