aboutsummaryrefslogtreecommitdiff
path: root/source/20-codegen-compiler/test
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-06-03 22:58:28 -0700
committerrtk0c <[email protected]>2022-06-03 22:58:28 -0700
commit8510a85f79f706b93982b4e398b187b5f77081dd (patch)
tree996c27f54f748d940f58454f7ef1e1570d1a31d5 /source/20-codegen-compiler/test
parentbd07ae3f4e1bcdedc3e373460671ca9713a03de5 (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')
-rw-r--r--source/20-codegen-compiler/test/examples/TestEnum.hpp.txt5
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,
};