swig/Examples/scilab/enum/example.h
2014-07-24 17:09:19 +02:00

13 lines
214 B
C++

/* File : example.h */
typedef enum { RED, BLUE, GREEN } color;
class Foo {
public:
Foo() { }
enum speed { IMPULSE, WARP, LUDICROUS };
void enum_test(speed s);
};
void enum_test(color c, Foo::speed s);