projects
/
external
/
swig.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
import source from 1.3.40
[external/swig.git]
/
Examples
/
test-suite
/
smart_pointer_simple.i
1
%module smart_pointer_simple
2
3
%inline %{
4
struct Foo {
5
int x;
6
int getx() { return x; }
7
};
8
9
class Bar {
10
Foo *f;
11
public:
12
Bar(Foo *f) : f(f) { }
13
Foo *operator->() {
14
return f;
15
}
16
};
17
%}
18
19