Skip to content

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

Merged
merged 1 commit into from
Nov 14, 2016

Conversation

emilio
Copy link
Contributor

@emilio emilio commented Nov 13, 2016

@emilio
Copy link
Contributor Author

emilio commented Nov 13, 2016

@bors-servo delegate=fitzgen

@bors-servo
Copy link

✌️ @fitzgen can now approve this pull request

#![allow(non_snake_case)]


pub const FOO: ::std::os::raw::c_uint = 4;
Copy link
Member

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 #undefed.

@fitzgen
Copy link
Member

fitzgen commented Nov 14, 2016

@bors-servo r+

@bors-servo
Copy link

📌 Commit 1001e3b has been approved by fitzgen

@bors-servo
Copy link

⌛ Testing commit 1001e3b with merge 004a195...

bors-servo pushed a commit that referenced this pull request Nov 14, 2016
Handle macro redefinition a bit more graciously.

r? @fitzgen
@bors-servo
Copy link

☀️ Test successful - status-travis

@bors-servo bors-servo merged commit 1001e3b into rust-lang:master Nov 14, 2016
luser pushed a commit to luser/rust-bindgen that referenced this pull request Mar 27, 2017
Translate C enums to Rust enums
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

Successfully merging this pull request may close these issues.

4 participants