Home | History | Annotate | Download | only in 2.0.11
      1 /* -----------------------------------------------------------------------------
      2  * attribute.i
      3  *
      4  * SWIG library file for implementing attributes.
      5  * ----------------------------------------------------------------------------- */
      6 
      7 /* we use a simple exception warning here */
      8 %{
      9 #include <stdio.h>
     10 %}
     11 #define %attribute_exception(code,msg) printf("%s\n",msg)
     12 
     13 #ifndef %arg
     14 #define %arg(x...) x
     15 #endif
     16 
     17 #ifndef %mangle
     18 #define %mangle(Type...)  #@Type
     19 #endif
     20 
     21 %include <typemaps/attribute.swg>
     22