diff options
author | rtk0c <[email protected]> | 2022-05-30 15:52:19 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-05-30 15:52:19 -0700 |
commit | 7d8bca09b3c4bf1418e758bd3bd0d6f85672153e (patch) | |
tree | f6e411e1ec949187889d268f2993e38cddb74d53 /buildtools/codegen/tests/examples/TestEnum.hpp.txt | |
parent | ce9559e8c2b69d46cff064241bd9a04c014af44f (diff) |
Changeset: 52 Add support for namespaced enums
Diffstat (limited to 'buildtools/codegen/tests/examples/TestEnum.hpp.txt')
-rw-r--r-- | buildtools/codegen/tests/examples/TestEnum.hpp.txt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/buildtools/codegen/tests/examples/TestEnum.hpp.txt b/buildtools/codegen/tests/examples/TestEnum.hpp.txt index e596c5e..441d97c 100644 --- a/buildtools/codegen/tests/examples/TestEnum.hpp.txt +++ b/buildtools/codegen/tests/examples/TestEnum.hpp.txt @@ -19,3 +19,25 @@ enum CountedEnum { CE_COUNT, }; BRUSSEL_ENUM(CountedEnum, ToString FromString ExcludeHeuristics); + +namespace MyNamespace { +enum MyNamespacedEnum { + MNE_Foo, + MNE_Bar, +}; +BRUSSEL_ENUM(MyNamespacedEnum, ToString FromString ExcludeHeuristics); + +namespace details { + enum MyNamespacedEnum { + MNE_Foo, + MNE_Bar, + }; + BRUSSEL_ENUM(MyNamespacedEnum, ToString FromString ExcludeHeuristics); +} +} + +namespace foo::details { +enum Enum { +}; +BRUSSEL_ENUM(Enum, ToString FromString ExcludeHeuristics); +} |