summaryrefslogtreecommitdiff
path: root/Lib/attribute.i
diff options
context:
space:
mode:
authorMarcelo Matus <mmatus@acms.arizona.edu>2005-10-26 07:14:49 +0000
committerMarcelo Matus <mmatus@acms.arizona.edu>2005-10-26 07:14:49 +0000
commitdb4f2f71a1df164e13dc35a75e80783103466718 (patch)
tree732a3ce0b140647eec2763000eb4ea6e4f02ba25 /Lib/attribute.i
parenta503a53533bc79636588bddc3509fe03791d706e (diff)
downloadswig-db4f2f71a1df164e13dc35a75e80783103466718.tar.gz
add attribute.i for other languages that don't use the unified typemap library
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7730 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Lib/attribute.i')
-rw-r--r--Lib/attribute.i15
1 files changed, 15 insertions, 0 deletions
diff --git a/Lib/attribute.i b/Lib/attribute.i
new file mode 100644
index 000000000..5b0200118
--- /dev/null
+++ b/Lib/attribute.i
@@ -0,0 +1,15 @@
+/* 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 %mange
+#define %mangle(Type...) #@Type
+#endif
+
+%include <typemaps/attribute.swg>