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:
parent
a503a53533
commit
db4f2f71a1
2 changed files with 23 additions and 7 deletions
15
Lib/attribute.i
Normal file
15
Lib/attribute.i
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue