Mercurial > mm7
comparison lib/swig/swigwin-2.0.11/Lib/attribute.i @ 1899:b3009adc0e2f
Adding swig, gitignore, hgignore
author | Nomad |
---|---|
date | Mon, 21 Oct 2013 10:42:27 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1867:eb580660bbbb | 1899:b3009adc0e2f |
---|---|
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> |