Moving the director protected member support to the top level. Now it should works in all the languages. Test it.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5498 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
825058f7e5
commit
bbde8dafa9
8 changed files with 88 additions and 34 deletions
|
|
@ -35,20 +35,20 @@ try:
|
|||
except:
|
||||
raise RuntimeError," bad FooBar::pong"
|
||||
|
||||
private=1
|
||||
protected=1
|
||||
try:
|
||||
b.ping()
|
||||
private=0
|
||||
protected=0
|
||||
except:
|
||||
pass
|
||||
if not private:
|
||||
raise RuntimeError,"Boo::ping is private"
|
||||
if not protected:
|
||||
raise RuntimeError,"Boo::ping is protected"
|
||||
|
||||
private=1
|
||||
protected=1
|
||||
try:
|
||||
f.ping()
|
||||
private=0
|
||||
protected=0
|
||||
except:
|
||||
pass
|
||||
if not private:
|
||||
raise RuntimeError,"Foo::ping is private"
|
||||
if not protected:
|
||||
raise RuntimeError,"Foo::ping is protected"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue