summaryrefslogtreecommitdiff
path: root/Examples/javascript/enum/example.h
blob: 9119cd9fc75203499fd5933fdcfc094dfc8f3b52 (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=10, WARP=20, LUDICROUS=30 };
  void enum_test(speed s);
};

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