From 8510a85f79f706b93982b4e398b187b5f77081dd Mon Sep 17 00:00:00 2001 From: rtk0c Date: Fri, 3 Jun 2022 22:58:28 -0700 Subject: Changeset: 61 [BUGGED] Move object kind enums to use generated ToString and FromStrong The old mechanism rely on a specific prefix to Ires and GameObject string representations, but the generator currently leaves the enum value. Therefore all editor (e.g. drag & drop) and IO (e.g. ires loading) mechanisms are broken. --- source/20-codegen-compiler/test/examples/TestEnum.hpp.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/20-codegen-compiler/test/examples') diff --git a/source/20-codegen-compiler/test/examples/TestEnum.hpp.txt b/source/20-codegen-compiler/test/examples/TestEnum.hpp.txt index 441d97c..30c36c0 100644 --- a/source/20-codegen-compiler/test/examples/TestEnum.hpp.txt +++ b/source/20-codegen-compiler/test/examples/TestEnum.hpp.txt @@ -5,7 +5,8 @@ enum MyEnum { }; BRUSSEL_ENUM(MyEnum, ToString FromString); -enum CountedEnumAll { +// Let's also test enum class +enum class CountedEnumAll { CEA_Foo, CEA_Bar, CEA_COUNT, @@ -21,7 +22,7 @@ enum CountedEnum { BRUSSEL_ENUM(CountedEnum, ToString FromString ExcludeHeuristics); namespace MyNamespace { -enum MyNamespacedEnum { +enum class MyNamespacedEnum { MNE_Foo, MNE_Bar, }; -- cgit v1.2.3-70-g09d2