/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
- %module sym
- // make sure different classes are allowed to have methods of the same name
- // that we properly qualify wrappers in the C namespace to avoid collisions
- %rename(hulahoops) Flim::Jam();
- %inline %{
- class Flim {
- public:
- Flim() { }
- const char * Jam() { return "flim-jam"; }
- const char * Jar() { return "flim-jar"; }
- };
- class Flam {
- public:
- Flam() { }
- const char * Jam() { return "flam-jam"; }
- const char * Jar() { return "flam-jar"; }
- };
- %}