summaryrefslogtreecommitdiff
path: root/Examples/ruby/template/example.i
blob: d5ddf7aaa3bfeeca01630dad6f1bde411bd82ce9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* File : example.i */
%module example

%{
#ifdef max
#undef max
#endif

#include "example.h"
%}

/* Let's just grab the original header file here */
%include "example.h"

/* Now instantiate some specific template declarations */

%template(maxint) max<int>;
%template(maxdouble) max<double>;
%template(Vecint) vector<int>;
%template(Vecdouble) vector<double>;