Files
cpp-thirdparty/winx64/bin/swigwin-4.0.0/Examples/test-suite/smart_pointer_simple.i
2019-08-04 21:38:19 -05:00

20 lines
205 B
OpenEdge ABL

%module smart_pointer_simple
%inline %{
struct Foo {
int x;
int getx() { return x; }
};
class Bar {
Foo *f;
public:
Bar(Foo *f) : f(f) { }
Foo *operator->() {
return f;
}
};
%}