update swig on windows
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
%module using_protected
|
||||
|
||||
%inline %{
|
||||
class Foo {
|
||||
protected:
|
||||
int x;
|
||||
int blah(int xx) { return xx; }
|
||||
virtual int vmethod(int xx) { return xx; }
|
||||
virtual ~Foo() {}
|
||||
};
|
||||
|
||||
class FooBar : public Foo {
|
||||
public:
|
||||
using Foo::blah;
|
||||
using Foo::x;
|
||||
using Foo::vmethod;
|
||||
};
|
||||
|
||||
class FooBaz : public Foo {
|
||||
protected:
|
||||
using Foo::blah;
|
||||
using Foo::x;
|
||||
using Foo::vmethod;
|
||||
};
|
||||
|
||||
%}
|
||||
|
||||
Reference in New Issue
Block a user