/tags/ttn-post-libtool-1-4-3-upgrade/SWIG/Examples/test-suite/cplusplus_throw.i
Swig | 22 lines | 11 code | 7 blank | 4 comment | 0 complexity | 877ee8543b0d5da5a31143daf27ac58d MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- /* This interface file checks whether the SWIG parses the throw
- directive in combination with the const directive. Bug reported by
- Scott B. Drummonds, 08 June 2001.
- */
- %module cplusplus_throw
- %pragma no_default
- %inline %{
- class Foo { };
- class Bar {
- public:
- void baz() const { };
- void foo() throw (Foo) { };
- void bazfoo() const throw (int) { };
- };
- %}