-
Notifications
You must be signed in to change notification settings - Fork 710
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
Bindgen skips macros with token concatenation. #2402
Comments
I'm pretty sure it's not just token concatenation - any invocation of a macro in a #define seems ignored, even something as simple as
|
Actually looks like this is just a subset of #753 |
yeah this happens just because we don't know how to process function-like macros. Closing as a duplicate of #753 |
The bindgen output of the C code below #define A 1 ## 2
#define B 2 is /* automatically generated by rust-bindgen 0.61.0 */
pub const B: u32 = 2; IIUC, it doesn't seem to be included in #753. |
@oToToT The newest bindgen release includes work that resolves this issue despite not being included in the issue. I just tested with the newest bindgen and this syntax is handled with the |
Closed via #2779 |
Input C/C++ Header
Bindgen Invocation
Actual Result
Expected Results
Ref
The text was updated successfully, but these errors were encountered: