update swig on windows
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
%module smart_pointer_const
|
||||
|
||||
%inline %{
|
||||
struct Foo {
|
||||
int x;
|
||||
int getx() const { return x; }
|
||||
};
|
||||
|
||||
class Bar {
|
||||
Foo *f;
|
||||
public:
|
||||
Bar(Foo *f) : f(f) { }
|
||||
Foo *operator->() {
|
||||
return f;
|
||||
}
|
||||
};
|
||||
%}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user