swig/Examples/test-suite/d_exception_name.i
David Nadlinger a22df2eca9 [D] Refer to the built-in Exception class using its fully-qualified name.
A C++ class called "Exception" could shadow the built-in one before, leading to compilation errors in the exception handling code.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12318 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-11-27 00:13:44 +00:00

15 lines
319 B
OpenEdge ABL

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