-
Notifications
You must be signed in to change notification settings - Fork 707
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
Support unsafe_op_in_unsafe_fn
#2063
Comments
Seems pretty reasonable. |
I think that this could be a good feature but if As discussed over in madsmtm/objc2#85 (comment), it'd be somewhat similar to Swift's Anyway, should I write an issue describing this? |
I think this would be better because as far as I understand this issue only is about wrapping bodies of |
Thanks for this @pvdrz! |
Projects wishing to use
unsafe_op_in_unsafe_fn
canallow
the warning when importing the bindings.However, it would be ideal if
bindgen
would offer a way (e.g. command-line flag) to generate bindings withunsafe
blocks insideunsafe fn
s as needed.That way, projects can
forbid
it globally, and those that justdeny
it do not need to write theallow
themselves.The text was updated successfully, but these errors were encountered: