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

Bindgen crashes on enums mixed with macros (#define) #196

Open
david-bouyssie opened this issue May 17, 2021 · 0 comments
Open

Bindgen crashes on enums mixed with macros (#define) #196

david-bouyssie opened this issue May 17, 2021 · 0 comments

Comments

@david-bouyssie
Copy link

Example of problematic definition:

enum XML_Status {
  XML_STATUS_ERROR = 0,
#define XML_STATUS_ERROR XML_STATUS_ERROR
  XML_STATUS_OK = 1,
#define XML_STATUS_OK XML_STATUS_OK
  XML_STATUS_SUSPENDED = 2
#define XML_STATUS_SUSPENDED XML_STATUS_SUSPENDED
};

See: https://github.com/libexpat/libexpat/blob/master/expat/lib/expat.h#L70

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

1 participant