projects
/
profile
/
ivi
/
swig.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Upstream version 1.3.40
[profile/ivi/swig.git]
/
Examples
/
test-suite
/
template_ns3.i
1
%module template_ns3
2
3
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) foo::bar<int>; /* Ruby, wrong class name */
4
5
%inline %{
6
namespace foo {
7
typedef int Integer;
8
9
template<class T> class bar {
10
public:
11
Integer test(Integer x) { return x; }
12
};
13
14
}
15
%}
16
17
%template(bari) foo::bar<int>;
18
19
20
21