Represent enums as themselves in generated code

Define enum type and enum values as the elements of this enum instead of using
preprocessor #defines for them.

This fixes a couple of enum-related unit tests.
This commit is contained in:
Vadim Zeitlin 2016-04-14 02:36:00 +02:00
commit fb4d700279
2 changed files with 62 additions and 23 deletions

View file

@ -47,9 +47,7 @@ FAILING_CPP_TESTS := \
char_strings \
constant_pointers \
cpp_basic \
cpp_basic_class_enum \
cpp_basic_class_var_pub_member_built_in \
cpp_basic_global_enum \
cpp_basic_global_var_built_in \
cpp_basic_global_var_class \
cpp_basic_template_class \