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

Feature/cfg_attr #189

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Feature/cfg_attr #189

wants to merge 2 commits into from

Conversation

boozook
Copy link

@boozook boozook commented Aug 9, 2018

First implementation #183 , need review. @eqrion

Now supports forms:

#[cfg_attr(feature = "foo", no_mangle)]
#[cfg_attr(feature = "foo", repr(C))]
#[cfg_attr(not(feature = "bar"), repr(C))]

And in the bindgen::utilities::SynItemHelpers::has_attr_word - any word like #[cfg_attr(feature = "foo", any_word)].


Currently ignores first parts of cfg_attr like feature = "xxx" and takes repr, no_mangle or any needed Word-part. But works great for me.

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.

None yet

1 participant