We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f01e4c commit 716d1caCopy full SHA for 716d1ca
1 file changed
libnetfilter_queue.i
@@ -4,6 +4,8 @@
4
#include <nfq.h>
5
6
#include <nfq_common.h>
7
+
8
+#include <exception.h>
9
%}
10
11
%include exception.i
@@ -24,6 +26,15 @@
24
26
25
27
%extend queue {
28
29
+%exception {
30
+ char *err;
31
+ clear_exception();
32
+ $action
33
+ if ((err = check_exception())) {
34
+ SWIG_exception(SWIG_RuntimeError, err);
35
+ }
36
+}
37
38
int open();
39
void close();
40
int bind(int);
0 commit comments