-
Notifications
You must be signed in to change notification settings - Fork 724
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
No bindings generated for macros using enums in bitshifts #2954
Comments
what happens if you use the clang macro fallback? |
lmao dumb question, but how would I do that? I'm actually kind of a noob at bindgen. |
|
Hmm, this seems like it'll make rust-analyzer happy but now my code fails to generate bindings with:
My build.rs has:
with a
|
That happens thanks to this beautiful piece of C in /* Bits in the FLAGS argument to `send', `recv', et al. */
enum
{
MSG_OOB = 0x01, /* Process out-of-band data. */
/* ... and more */
}; My best fix for it so far has been to block all the items that start with |
liburing will define macros as such:
bindgen fails to generate these constants, because it doesn't seem to handle the case where an
enum
is being usedThe macros are correctly generated if the enums are removed and replace with integer literals
The text was updated successfully, but these errors were encountered: