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:
Marcelo Matus 2003-12-07 23:00:02 +00:00
commit bbde8dafa9
8 changed files with 88 additions and 34 deletions

View file

@ -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"