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
wrap-static-fns converts _Bool to bool, causing a compile error #2805
Comments
hmmm... Well this is a hard one, _Bool example(); The AST produced by
Where |
I guess the question is does #include <stdbool.h>
static inline bool example() { return 1; } because I'm seeing the same in |
I'm seeing the same kind here using your example:
|
I made a little wrapper header using
_Bool
to avoid having to includestdbool.h
since I was being lazy and didn't want to exclude a few symbols. It translated the_Bool
tobool
in thewrap-static-fns
generated wrapper, which caused a compilation failure.(Workaround: Just use stdbool. It’s not a big deal to filter out the few definitions.)
Input C/C++ Header
Bindgen Invocation
Actual Results
It generates this wrapper, with
_Bool
translated tobool
.which produces this error:
Expected Results
The generated wrappers should use
_Bool
as provided in the input.The text was updated successfully, but these errors were encountered: