apply SF Patch #350 and add testcase

This commit is contained in:
Robert Stone 2014-08-15 21:47:10 -07:00
commit 488aed4224
4 changed files with 42 additions and 9 deletions

View file

@ -0,0 +1,29 @@
%module(directors="1") "director::nestedmodule"
%{
#include <string>
class Foo {
public:
virtual ~Foo() {}
virtual std::string ping() { return "Foo::ping()"; }
virtual std::string pong() { return "Foo::pong();" + ping(); }
static Foo* get_self(Foo *slf) {return slf;}
};
%}
%include <std_string.i>
%feature("director") Foo;
class Foo {
public:
virtual ~Foo();
virtual std::string ping();
virtual std::string pong();
static Foo* get_self(Foo *slf);
};