summaryrefslogtreecommitdiff
path: root/Examples/python/enum/example.h
blob: 525d62afc5726c3b2049c2c427ec964fabaaf626 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* File : example.h */

enum color { RED, BLUE, GREEN };

class Foo {
 public:
  Foo() { }
  enum speed { IMPULSE, WARP, LUDICROUS };
  void enum_test(speed s);
};

void enum_test(color c, Foo::speed s);