PageRenderTime 17ms CodeModel.GetById 15ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Lib/attribute.i

#
Swig | 21 lines | 11 code | 4 blank | 6 comment | 0 complexity | 6f280df02db0b3e983dcad21ba6546bd MD5 | raw file
 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>