PageRenderTime 32ms CodeModel.GetById 30ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/ruby/template/example.i

#
Swig | 21 lines | 12 code | 6 blank | 3 comment | 0 complexity | 0904d80106278bebd640308053907f4b MD5 | raw file
 1/* File : example.i */
 2%module example
 3
 4%{
 5#ifdef max
 6#undef max
 7#endif
 8
 9#include "example.h"
10%}
11
12/* Let's just grab the original header file here */
13%include "example.h"
14
15/* Now instantiate some specific template declarations */
16
17%template(maxint) max<int>;
18%template(maxdouble) max<double>;
19%template(Vecint) vector<int>;
20%template(Vecdouble) vector<double>;
21