/trunk/Examples/test-suite/d_exception_name.i
# · Swig · 15 lines · 13 code · 2 blank · 0 comment · 0 complexity · ea61633b70d3eee00bb2304dd645fddb MD5 · raw file
- // Tests if exception handling still works in the presence of a wrapped C++
- // class called »Exception«, which could shadow the built-in Exception class.
- %module d_exception_name
- %inline %{
- class Exception {
- Exception(int i) {}
- };
- class Foo {
- ~Foo() {}
- public:
- void bar(Exception *e) {}
- };
- %}