PageRenderTime 46ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/Examples/test-suite/overload_subtype.i

#
Swig | 17 lines | 11 code | 6 blank | 0 comment | 0 complexity | 5e7e678a0f0213385a1ff6a0fd5a1756 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. %module overload_subtype
  2. %inline %{
  3. class Foo {};
  4. class Bar : public Foo {};
  5. int spam(Foo *f) {
  6. return 1;
  7. }
  8. int spam(Bar *b) {
  9. return 2;
  10. }
  11. %}