summaryrefslogtreecommitdiff
path: root/Examples/test-suite/exception_classname.i
blob: ed8c433ebe6bfdc51a4795053c7c9c47b60b77f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
%module exception_classname

%warnfilter(SWIGWARN_RUBY_WRONG_NAME);
#if defined(SWIGPHP) || defined(SWIGD)
%rename(ExceptionClass) Exception;
#endif

%inline %{
class Exception {
public:
  int testfunc() { return 42; }
};
%}