/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 5%rename(hulahoops) Flim::Jam(); 6 7%inline %{ 8 9class Flim { 10public: 11 Flim() { } 12 const char * Jam() { return "flim-jam"; } 13 const char * Jar() { return "flim-jar"; } 14}; 15 16class Flam { 17public: 18 Flam() { } 19 const char * Jam() { return "flam-jam"; } 20 const char * Jar() { return "flam-jar"; } 21}; 22 23%} 24