Don't generate delete functions if dtor is not accessible
This fixes failures in virtual_dtor and using_protected unit tests.
This commit is contained in:
parent
4962871cd9
commit
8ff7941503
1 changed files with 3 additions and 0 deletions
|
|
@ -1669,6 +1669,9 @@ ready:
|
|||
* --------------------------------------------------------------------- */
|
||||
|
||||
virtual int destructorHandler(Node *n) {
|
||||
if (Cmp(Getattr(n, "access"), "public") != 0)
|
||||
return SWIG_NOWRAP;
|
||||
|
||||
Node *klass = Swig_methodclass(n);
|
||||
String *classname = Getattr(klass, "name");// Remove class namespace from constructor
|
||||
String *classtype = Getattr(klass, "classtype");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue