-
Notifications
You must be signed in to change notification settings - Fork 746
use of VOID typedef results in bindings that return c_void #2377
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
Comments
I have to acknowledge that commenting out the typedef and replacing it with '#define VOID void' works just fine. It's not a great out of the box solution given the typedef is in the shipping headers. |
And reuse a bit more code. Should fix #2377, but needs a test (can't run tests atm).
This seems like a plain oversight. The code we have to detect whether the return type of a function is void doesn't look through type aliases. #2379 is a potential fix, but needs a test and I can't write it right now. |
* codegen: Look through typedefs to detect void return type. And reuse a bit more code. Should fix #2377, but needs a test (can't run tests atm). * Add tests * Run rustfmt * Update changelog Co-authored-by: Christian Poveda <[email protected]>
Input C/C++ Header
Bindgen Invocation
Actual Results
The text was updated successfully, but these errors were encountered: