PageRenderTime 23ms CodeModel.GetById 21ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/rel-1-3-26/SWIG/Examples/test-suite/abstract_inherit_ok.i

#
Swig | 22 lines | 17 code | 5 blank | 0 comment | 0 complexity | 2878cc8b203f1f6cdde6a099cb0ecd39 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
 1%module abstract_inherit_ok
 2
 3%feature("notabstract") Spam;
 4%warnfilter(403) Spam;
 5
 6%inline %{
 7
 8class Foo {
 9public:
10    virtual ~Foo() { }
11    virtual int blah() = 0;
12};
13
14class Spam: public Foo {
15public:
16   Spam() { }
17#ifndef SWIG
18   int blah() { return 0; }
19#endif
20};
21
22%}