PageRenderTime 40ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 1ms

/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. %feature("notabstract") Spam;
  3. %warnfilter(403) Spam;
  4. %inline %{
  5. class Foo {
  6. public:
  7. virtual ~Foo() { }
  8. virtual int blah() = 0;
  9. };
  10. class Spam: public Foo {
  11. public:
  12. Spam() { }
  13. #ifndef SWIG
  14. int blah() { return 0; }
  15. #endif
  16. };
  17. %}