We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
()
static inline void f(void) {}
$ bindgen --wrap-static-fns --experimental input.h
In /tmp/bindgen/extern.c:
/tmp/bindgen/extern.c
void f__extern() { return f(); }
Before C23, one should use (void) to indicate an empty parameter list:
(void)
void f__extern(void) { return f(); }
The text was updated successfully, but these errors were encountered:
bindgen
Same as #2485
Sorry, something went wrong.
It is not the same, one is about the parameter list, the other about returning a call that returns void.
return
void
Oh yeah my bad, this is fixed on 0.65.1, the other one is fixed on mastermain
Thanks!
No branches or pull requests
Input C/C++ Header
Bindgen Invocation
Actual Results
In
/tmp/bindgen/extern.c
:Expected Results
Before C23, one should use
(void)
to indicate an empty parameter list:The text was updated successfully, but these errors were encountered: