fix problem with protected members, and add some of them to the test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5507 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
26e9014fc9
commit
93dd1e228e
2 changed files with 5 additions and 0 deletions
|
|
@ -35,10 +35,14 @@ public:
|
||||||
return "Bar::pong();" + Foo::pong();
|
return "Bar::pong();" + Foo::pong();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int hello;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
std::string ping() {
|
std::string ping() {
|
||||||
return "Bar::ping();";
|
return "Bar::ping();";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
int hi;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -701,6 +701,7 @@ int Language::cDeclaration(Node *n) {
|
||||||
if (CurrentClass && (cplus_mode == CPLUS_PROTECTED) &&
|
if (CurrentClass && (cplus_mode == CPLUS_PROTECTED) &&
|
||||||
(!directors ||
|
(!directors ||
|
||||||
!director_protected_mode ||
|
!director_protected_mode ||
|
||||||
|
Cmp(storage,"virtual") ||
|
||||||
!is_member_director(CurrentClass,n))) return SWIG_NOWRAP;
|
!is_member_director(CurrentClass,n))) return SWIG_NOWRAP;
|
||||||
|
|
||||||
if (Cmp(storage,"typedef") == 0) {
|
if (Cmp(storage,"typedef") == 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue