aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/enum_scope.i
blob: 4afc231c6c950340459dd5afce929d060cb2d65a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
%module enum_scope

#ifdef SWIGPHP
// php internal naming conflict
%rename (chops) chop;
#endif

%inline %{
class Tree {
public:
enum types {Oak, Fir, Cedar};
void chop(enum types type) {}
};
enum Tree::types chop(enum Tree::types type) { return type; }
 
%}