PageRenderTime 220ms CodeModel.GetById 153ms app.highlight 2ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/rel-1-3-26/SWIG/Examples/java/enum/example.h

#
C++ Header | 13 lines | 8 code | 4 blank | 1 comment | 0 complexity | a6769643a11d6153ab72329545b20529 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
 1/* File : example.h */
 2
 3enum color { RED, BLUE, GREEN };
 4
 5class Foo {
 6 public:
 7  Foo() { }
 8  enum speed { IMPULSE=10, WARP=20, LUDICROUS=30 };
 9  void enum_test(speed s);
10};
11
12void enum_test(color c, Foo::speed s);
13