Skip to content
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

#defines in enumerator is causing error #29

Open
JacobNoergaard opened this issue Mar 21, 2023 · 1 comment
Open

#defines in enumerator is causing error #29

JacobNoergaard opened this issue Mar 21, 2023 · 1 comment

Comments

@JacobNoergaard
Copy link

It might be a corner case, but a corner case I am stumbling into right now.

The following snippet is causing an error and I am not sure if the #define should be ignored in the diagram or not.

enum class states
{
    #undef ID
    #define ID(x) x,
    state
};
@thibaultmarin
Copy link
Owner

thibaultmarin commented Apr 17, 2023

There seems to be an error when parsing this with robotpy-cppheaderparser (which is used for parsing). This may be improved when migrating to cxxheaderparser which should happen at some time in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants