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
This commit is contained in:
Marcelo Matus 2005-10-26 07:14:49 +00:00
commit db4f2f71a1
2 changed files with 23 additions and 7 deletions

15
Lib/attribute.i Normal file
View file

@ -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>