summaryrefslogtreecommitdiff
path: root/share/swig/2.0.11/attribute.i
diff options
context:
space:
mode:
Diffstat (limited to 'share/swig/2.0.11/attribute.i')
-rw-r--r--share/swig/2.0.11/attribute.i21
1 files changed, 21 insertions, 0 deletions
diff --git a/share/swig/2.0.11/attribute.i b/share/swig/2.0.11/attribute.i
new file mode 100644
index 0000000..d580dbf
--- /dev/null
+++ b/share/swig/2.0.11/attribute.i
@@ -0,0 +1,21 @@
+/* -----------------------------------------------------------------------------
+ * attribute.i
+ *
+ * SWIG library file for implementing attributes.
+ * ----------------------------------------------------------------------------- */
+
+/* we use a simple exception warning here */
+%{
+#include <stdio.h>
+%}
+#define %attribute_exception(code,msg) printf("%s\n",msg)
+
+#ifndef %arg
+#define %arg(x...) x
+#endif
+
+#ifndef %mangle
+#define %mangle(Type...) #@Type
+#endif
+
+%include <typemaps/attribute.swg>