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

# · Swig · 15 lines · 13 code · 2 blank · 0 comment · 0 complexity · ea61633b70d3eee00bb2304dd645fddb MD5 · raw file

  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. %}