diff options
author | rtk0c <[email protected]> | 2022-06-03 22:58:28 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-06-03 22:58:28 -0700 |
commit | 8510a85f79f706b93982b4e398b187b5f77081dd (patch) | |
tree | 996c27f54f748d940f58454f7ef1e1570d1a31d5 /source/20-codegen-compiler/test/examples | |
parent | bd07ae3f4e1bcdedc3e373460671ca9713a03de5 (diff) |
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.
Diffstat (limited to 'source/20-codegen-compiler/test/examples')
-rw-r--r-- | source/20-codegen-compiler/test/examples/TestEnum.hpp.txt | 5 |
1 files changed, 3 insertions, 2 deletions
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, }; |