/tags/ttn-pre-libtool-1-4-3-upgrade/SWIG/Examples/test-suite/enum_scope.i
# · Swig · 16 lines · 13 code · 3 blank · 0 comment · 0 complexity · 09162322a0431793868d10a36220683b MD5 · raw file
- %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; }
-
- %}