[Go] Fix bug with ignored destructor--generated code did not compile.
This commit is contained in:
parent
1e19e4bd45
commit
5bca063536
2 changed files with 41 additions and 25 deletions
|
|
@ -10,6 +10,7 @@
|
|||
%ignore OverloadedProtectedMethod(int n, int xoffset = 0, int yoffset = 0);
|
||||
%ignore DIgnoreConstructor(bool b);
|
||||
%ignore DIgnoreOnlyConstructor(bool b);
|
||||
%ignore DIgnoreDestructor::~DIgnoreDestructor;
|
||||
%ignore Pointers;
|
||||
%ignore References;
|
||||
%ignore PublicMethod1;
|
||||
|
|
@ -101,6 +102,13 @@ class DIgnoreOnlyConstructor
|
|||
DIgnoreOnlyConstructor(bool b) {}
|
||||
};
|
||||
|
||||
class DIgnoreDestructor
|
||||
{
|
||||
public:
|
||||
DIgnoreDestructor() {}
|
||||
virtual ~DIgnoreDestructor() {}
|
||||
};
|
||||
|
||||
%{
|
||||
class DIgnoreConstructor
|
||||
{
|
||||
|
|
@ -118,5 +126,12 @@ class DIgnoreOnlyConstructor
|
|||
private: // Hide constructor
|
||||
DIgnoreOnlyConstructor(bool b) {}
|
||||
};
|
||||
%}
|
||||
|
||||
class DIgnoreDestructor
|
||||
{
|
||||
public:
|
||||
DIgnoreDestructor() {}
|
||||
virtual ~DIgnoreDestructor() {}
|
||||
};
|
||||
|
||||
%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue