import source from 1.3.40
[external/swig.git] / Lib / attribute.i
1 /* -----------------------------------------------------------------------------
2  * See the LICENSE file for information on copyright, usage and redistribution
3  * of SWIG, and the README file for authors - http://www.swig.org/release.html.
4  *
5  * attribute.i
6  *
7  * SWIG library file for implementing attributes.
8  * ----------------------------------------------------------------------------- */
9
10 /* we use a simple exception warning here */
11 %{
12 #include <stdio.h>
13 %}
14 #define %attribute_exception(code,msg) printf("%s\n",msg)
15
16 #ifndef %arg
17 #define %arg(x) x
18 #endif
19
20 #ifndef %mangle
21 #define %mangle(Type...)  #@Type
22 #endif
23
24 %include <typemaps/attribute.swg>