diff options
author | Marcelo Matus <mmatus@acms.arizona.edu> | 2005-11-21 20:29:54 +0000 |
---|---|---|
committer | Marcelo Matus <mmatus@acms.arizona.edu> | 2005-11-21 20:29:54 +0000 |
commit | f4a45fa25212b45d04552b92f389b67686e94d51 (patch) | |
tree | 00cfe0c99fbfe135f822d57bf255fba16b0fbd40 /Examples/test-suite/director_exception.i | |
parent | d18d84cd3b491d649f5aa2872f2a6d8e8dde033e (diff) | |
download | swig-f4a45fa25212b45d04552b92f389b67686e94d51.tar.gz |
adding more cases and suppressing the 470 warning
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7854 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Examples/test-suite/director_exception.i')
-rw-r--r-- | Examples/test-suite/director_exception.i | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/Examples/test-suite/director_exception.i b/Examples/test-suite/director_exception.i index 783de806d..b2eff53c6 100644 --- a/Examples/test-suite/director_exception.i +++ b/Examples/test-suite/director_exception.i @@ -3,16 +3,6 @@ #include <string> -class Foo { -public: - virtual ~Foo() {} - virtual std::string ping() { return "Foo::ping()"; } - virtual std::string pong(int val = 3) { return "Foo::pong();" + ping(); } -}; - -Foo *launder(Foo *f) { - return f; -} // define dummy director exception classes to prevent spurious errors // in target languages that do not support directors. @@ -61,14 +51,21 @@ class DirectorMethodException: public Swig::DirectorException {}; %feature("director") Foo; +%inline { + class Foo { public: - virtual ~Foo() {} - virtual std::string ping() { return "Foo::ping()"; } - virtual std::string pong(int val = 3) { return "Foo::pong();" + ping(); } + virtual ~Foo() {} + virtual std::string ping() { return "Foo::ping()"; } + virtual std::string pong(int val=3) { return "Foo::pong();" + ping(); } }; -Foo *launder(Foo *f); +Foo *launder(Foo *f) { + return f; +} + +} + %{ struct Unknown1 |