PageRenderTime 44ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/Examples/test-suite/d_exception_name.i

#
Swig | 15 lines | 13 code | 2 blank | 0 comment | 0 complexity | ea61633b70d3eee00bb2304dd645fddb MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. // Tests if exception handling still works in the presence of a wrapped C++
  2. // class called »Exception«, which could shadow the built-in Exception class.
  3. %module d_exception_name
  4. %inline %{
  5. class Exception {
  6. Exception(int i) {}
  7. };
  8. class Foo {
  9. ~Foo() {}
  10. public:
  11. void bar(Exception *e) {}
  12. };
  13. %}