PageRenderTime 72ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/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
  1. /* This interface file checks whether the SWIG parses the throw
  2. directive in combination with the const directive. Bug reported by
  3. Scott B. Drummonds, 08 June 2001.
  4. */
  5. %module cplusplus_throw
  6. %pragma no_default
  7. %inline %{
  8. class Foo { };
  9. class Bar {
  10. public:
  11. void baz() const { };
  12. void foo() throw (Foo) { };
  13. void bazfoo() const throw (int) { };
  14. };
  15. %}