swig/Examples/test-suite/abstract_signature.i
William S Fulton d9a0d047cb virtual method hiding fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8835 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-17 23:41:57 +00:00

26 lines
568 B
OpenEdge ABL

%module abstract_signature
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) abstract_foo; // Ruby, wrong class name
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) abstract_bar; // Ruby, wrong class name
%inline %{
class abstract_foo
{
public:
abstract_foo() { };
virtual ~abstract_foo() { };
virtual int meth(int meth_param) = 0;
};
class abstract_bar : public abstract_foo
{
public:
abstract_bar() { };
virtual ~abstract_bar() { };
virtual int meth(int meth_param) = 0;
int meth(int meth_param_1, int meth_param_2) { return 0; }
};
%}