-
Notifications
You must be signed in to change notification settings - Fork 742
Handle macro redefinition a bit more graciously. #247
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
Conversation
@bors-servo delegate=fitzgen |
✌️ @fitzgen can now approve this pull request |
#![allow(non_snake_case)] | ||
|
||
|
||
pub const FOO: ::std::os::raw::c_uint = 4; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally, FOO
would be 5
in the bindings. We want the last definition, not the first.
Also, file a follow up issue to track not generating bindings for macros that have been #undef
ed.
@bors-servo r+ |
📌 Commit 1001e3b has been approved by |
Handle macro redefinition a bit more graciously. r? @fitzgen
☀️ Test successful - status-travis |
Translate C enums to Rust enums
r? @fitzgen