enum Foo { FOO_ZERO = 0, FOO_ONE = 1, FOO_TWO = 2, FOO_THREE = 3, }; enum Foo getEnum(enum Foo foo_enum) { return foo_enum; }