add Scott Fix for directors+rename, and testExamples/test-suite/director_basic.i

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6388 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-10-11 22:53:24 +00:00
commit 1ea4adbcd4
2 changed files with 5 additions and 1 deletions

View file

@ -21,4 +21,8 @@ if b.ping() != "Foo::ping()":
if b.pong() != "Foo::pong();Foo::ping()":
raise RuntimeError, b.pong()
a = director_basic.A1(1)
if a.rg(2) != 2:
raise RuntimeError

View file

@ -1570,7 +1570,7 @@ int Language::unrollVirtualMethods(Node *n,
if (SwigType_isfunction(decl) &&
(is_public(ni) || need_nopublic)) {
String *name = Getattr(ni, "sym:name");
String *name = Getattr(ni, "name");
String *local_decl = SwigType_typedef_resolve_all(decl);
Node *method_id = is_destructor ? NewStringf("~destructor") : NewStringf("%s|%s", name, local_decl);