/trunk/Lib/attribute.i
Swig | 21 lines | 11 code | 4 blank | 6 comment | 0 complexity | 6f280df02db0b3e983dcad21ba6546bd MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- /* -----------------------------------------------------------------------------
- * attribute.i
- *
- * SWIG library file for implementing attributes.
- * ----------------------------------------------------------------------------- */
- /* 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 %mangle
- #define %mangle(Type...) #@Type
- #endif
- %include <typemaps/attribute.swg>