PageRenderTime 749ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/rel-1-3-29/SWIG/Examples/test-suite/sym.i

#
Swig | 24 lines | 18 code | 6 blank | 0 comment | 0 complexity | 7daa12f975c265194eda0097dfe2ba9d MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. %module sym
  2. // make sure different classes are allowed to have methods of the same name
  3. // that we properly qualify wrappers in the C namespace to avoid collisions
  4. %rename(hulahoops) Flim::Jam();
  5. %inline %{
  6. class Flim {
  7. public:
  8. Flim() { }
  9. const char * Jam() { return "flim-jam"; }
  10. const char * Jar() { return "flim-jar"; }
  11. };
  12. class Flam {
  13. public:
  14. Flam() { }
  15. const char * Jam() { return "flam-jam"; }
  16. const char * Jar() { return "flam-jar"; }
  17. };
  18. %}