diff options
author | Marcelo Matus <mmatus@acms.arizona.edu> | 2005-10-26 07:14:49 +0000 |
---|---|---|
committer | Marcelo Matus <mmatus@acms.arizona.edu> | 2005-10-26 07:14:49 +0000 |
commit | db4f2f71a1df164e13dc35a75e80783103466718 (patch) | |
tree | 732a3ce0b140647eec2763000eb4ea6e4f02ba25 /Lib/attribute.i | |
parent | a503a53533bc79636588bddc3509fe03791d706e (diff) | |
download | swig-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.i | 15 |
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> |