diff options
Diffstat (limited to 'source/20-codegen-compiler/test')
-rw-r--r-- | source/20-codegen-compiler/test/examples/TestEnum.hpp.txt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/20-codegen-compiler/test/examples/TestEnum.hpp.txt b/source/20-codegen-compiler/test/examples/TestEnum.hpp.txt index 30c36c0..fea1f6d 100644 --- a/source/20-codegen-compiler/test/examples/TestEnum.hpp.txt +++ b/source/20-codegen-compiler/test/examples/TestEnum.hpp.txt @@ -1,44 +1,44 @@ enum MyEnum { + BRUSSEL_ENUM(ToString, FromString) EnumElement1, EnumElement2, EnumElement3, }; -BRUSSEL_ENUM(MyEnum, ToString FromString); // Let's also test enum class enum class CountedEnumAll { + BRUSSEL_ENUM(ToString, FromString) CEA_Foo, CEA_Bar, CEA_COUNT, }; -BRUSSEL_ENUM(CountedEnumAll, ToString FromString); enum CountedEnum { + BRUSSEL_ENUM(ToString, FromString, RemovePrefix CE_, AddPrefix CustomPrefix, ExcludeHeuristics) CE_Foo, CE_Bar, CE_FooBar, CE_COUNT, }; -BRUSSEL_ENUM(CountedEnum, ToString FromString ExcludeHeuristics); namespace MyNamespace { enum class MyNamespacedEnum { + BRUSSEL_ENUM(ToString, FromString, ExcludeHeuristics) MNE_Foo, MNE_Bar, }; -BRUSSEL_ENUM(MyNamespacedEnum, ToString FromString ExcludeHeuristics); namespace details { enum MyNamespacedEnum { + BRUSSEL_ENUM(ToString, FromString, ExcludeHeuristics) MNE_Foo, MNE_Bar, }; - BRUSSEL_ENUM(MyNamespacedEnum, ToString FromString ExcludeHeuristics); } } namespace foo::details { enum Enum { + BRUSSEL_ENUM(ToString, FromString, ExcludeHeuristics) }; -BRUSSEL_ENUM(Enum, ToString FromString ExcludeHeuristics); } |