summaryrefslogtreecommitdiff
path: root/Examples/test-suite/sym.i
blob: 83226cbaac4abca8ed89f348b8ec4350834577f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
%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"; }
};

%}