-
Notifications
You must be signed in to change notification settings - Fork 725
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
Interaction between wrapped statics and redefined function #2420
Comments
Hmmm this is an interesting interaction. Sadly, I don't see this working anytime soon. In your example the But this example goes beyond the support that's being discussed in that issue. For context, most libraries would use However, your example would require translating this macro definition into something understandable from the rust side, either a macro or a function and I'm not sure if we can achieve that yet without writing a C preprocessor from scratch. Moreover we would need to be able to access this shadowed |
Yeah, this example is tricky. I don't expect bindgen to a able to do anything meaningful anytime soon. However would it by possible to not generate anything in this case? Having to add those functions in the blocklist seems like workaround and is also very fragile. Note that I would be happy to try to tackle it with some mentoring. |
Well I am trying to write a C preprocessor from scratch so we might get to do something in this direction eventually. Other than the blocklist I guess you could use some of the |
Input C/C++ Header
Bindgen Invocation
Actual Results
and
and compiling the C wrapper:
Expected Results
I don't really know. Is this something that should work? If yes, how ?
cc @pvdrz
The text was updated successfully, but these errors were encountered: