It is possible that the module we're wrapping defines an Exception
class. This will confuse code that uses an unqualified "Exception"
class (e.g. "try: ... except Exception") since it now won't match
the Python builtin Exception. Fix this by explicitly using
the class from the __builtin__ module ("builtins" in Python 3).
10 lines
144 B
OpenEdge ABL
10 lines
144 B
OpenEdge ABL
%module exception_classname
|
|
|
|
%warnfilter(SWIGWARN_RUBY_WRONG_NAME);
|
|
|
|
%inline %{
|
|
class Exception {
|
|
public:
|
|
int testfunc() { return 42; }
|
|
};
|
|
%}
|