From 6f29abe5571eb68207986bdadb97b207264ac958 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Sun, 29 May 2022 21:57:53 -0700 Subject: Changeset: 49 Convert codegen output to use template specialization --- buildtools/codegen/tests/examples/TestEnum.hpp | 23 ---------------------- buildtools/codegen/tests/examples/TestEnum.hpp.txt | 21 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 23 deletions(-) delete mode 100644 buildtools/codegen/tests/examples/TestEnum.hpp create mode 100644 buildtools/codegen/tests/examples/TestEnum.hpp.txt (limited to 'buildtools/codegen/tests/examples') diff --git a/buildtools/codegen/tests/examples/TestEnum.hpp b/buildtools/codegen/tests/examples/TestEnum.hpp deleted file mode 100644 index 6b4ab33..0000000 --- a/buildtools/codegen/tests/examples/TestEnum.hpp +++ /dev/null @@ -1,23 +0,0 @@ -#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); diff --git a/buildtools/codegen/tests/examples/TestEnum.hpp.txt b/buildtools/codegen/tests/examples/TestEnum.hpp.txt new file mode 100644 index 0000000..e596c5e --- /dev/null +++ b/buildtools/codegen/tests/examples/TestEnum.hpp.txt @@ -0,0 +1,21 @@ +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); -- cgit v1.2.3-70-g09d2