-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to map enum wrapped in a struct #146
Comments
Currently I don't think enums nested in structs are currently parsed into the C++ AST. I'll try to take a look at supporting nested types in the C++ AST. Once it's supported, the rule that you'll likely want is |
Doesn't the same hold for namespaces? I get |
@jkoritzinsky is there any plan to fix this, what would be involved? Currently this is holding up my project. |
I’m very busy with work at the moment so I don’t know when I’ll get this done. |
I am trying to map a series of enums which are declared and then used as follows:
I am trying to map them like this:
But I get these errors:
Are these enums represented in the C++ AST at all? How do I match on them such that first of all the method will be generated and second that some C# equivalent of the enumerations is created?
Next to that, the wrapping is usually in otherwise empty structs, probably because C++ enums are a broken concept as their constant members aren't scoped to the enum declaration. But it is silly to have enums be declared as nested in a struct, although it is valid C#. How do I match on them and change the C# such that these enums will be declared as
SomeEnumName
?The text was updated successfully, but these errors were encountered: