/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
- // 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) {}
- };
- %}