preventing generation of director protected members for languages with no director support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5506 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c7d4362896
commit
7ea7abf7ff
1 changed files with 5 additions and 3 deletions
|
|
@ -698,8 +698,10 @@ int Language::cDeclaration(Node *n) {
|
||||||
|
|
||||||
|
|
||||||
if (CurrentClass && (cplus_mode == CPLUS_PRIVATE)) return SWIG_NOWRAP;
|
if (CurrentClass && (cplus_mode == CPLUS_PRIVATE)) return SWIG_NOWRAP;
|
||||||
if ((cplus_mode == CPLUS_PROTECTED) &&
|
if (CurrentClass && (cplus_mode == CPLUS_PROTECTED) &&
|
||||||
(!director_protected_mode || !is_member_director(CurrentClass,n))) return SWIG_NOWRAP;
|
(!directors ||
|
||||||
|
!director_protected_mode ||
|
||||||
|
!is_member_director(CurrentClass,n))) return SWIG_NOWRAP;
|
||||||
|
|
||||||
if (Cmp(storage,"typedef") == 0) {
|
if (Cmp(storage,"typedef") == 0) {
|
||||||
Swig_save("cDeclaration",n,"type",NIL);
|
Swig_save("cDeclaration",n,"type",NIL);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue