diff options
author | rtk0c <[email protected]> | 2022-05-29 16:14:26 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-05-29 16:14:26 -0700 |
commit | 66b63ae887f553e1cac813546a6b827a9c85d80c (patch) | |
tree | c404dd9cc6a74853f8ea409cdeeb1419b04cef44 /buildtools/codegen/tests/examples | |
parent | 1a6f1ea3b76c3ed4cad5aba5502af390ce50a2c0 (diff) |
Changeset: 43 Add tostring code gen for enums
Diffstat (limited to 'buildtools/codegen/tests/examples')
-rw-r--r-- | buildtools/codegen/tests/examples/TestEnum.hpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/buildtools/codegen/tests/examples/TestEnum.hpp b/buildtools/codegen/tests/examples/TestEnum.hpp index 2a93c01..c498cd9 100644 --- a/buildtools/codegen/tests/examples/TestEnum.hpp +++ b/buildtools/codegen/tests/examples/TestEnum.hpp @@ -5,4 +5,19 @@ enum MyEnum { EnumElement2, EnumElement3, }; -BRUSSEL_ENUM(MyEnum, GenBasic); +BRUSSEL_ENUM(MyEnum, ToString); + +enum CountedEnumAll { + CEA_Foo, + CEA_Bar, + CEA_COUNT, +}; +BRUSSEL_ENUM(CountedEnumAll, ToString); + +enum CountedEnum { + CE_Foo, + CE_Bar, + CE_FooBar, + CE_COUNT, +}; +BRUSSEL_ENUM(CountedEnum, ToString ExcludeHeuristics); |