aboutsummaryrefslogtreecommitdiff
path: root/buildtools/codegen/tests/examples/TestEnum.hpp
blob: 6b4ab331a19d36abb4d1c90385fe3ce3b9c1e80d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "MacrosCodegen.hpp"

enum MyEnum {
	EnumElement1,
	EnumElement2,
	EnumElement3,
};
BRUSSEL_ENUM(MyEnum, ToString FromString);

enum CountedEnumAll {
	CEA_Foo,
	CEA_Bar,
	CEA_COUNT,
};
BRUSSEL_ENUM(CountedEnumAll, ToString FromString);

enum CountedEnum {
	CE_Foo,
	CE_Bar,
	CE_FooBar,
	CE_COUNT,
};
BRUSSEL_ENUM(CountedEnum, ToString FromString ExcludeHeuristics);