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
static inline int *f(void) { return (int *)0; }
$ bindgen input.h --experimental --wrap-static-fns --wrap-static-fns-path="wrapper.c"
wrapper.c:
wrapper.c
int * f__extern(void) asm("f__extern"); int * f__extern() { return f(); }
int * f__extern(void) asm("f__extern"); int * f__extern(void) { return f(); }
The text was updated successfully, but these errors were encountered:
👋 I see no difference between the two results 😅
Edit: OHHHH it's the void
void
Sorry, something went wrong.
Yeah, sorry, I should have been more precise. Produces this warning:
[...]/rust/wrapper.c:1468:38: error: old-style function definition [-Werror=old-style-definition] 1468 | struct stack_st_ACCESS_DESCRIPTION * sk_ACCESS_DESCRIPTION_new_null__extern() { return sk_ACCESS_DESCRIPTION_new_null(); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thanks for the super quick fix!
Successfully merging a pull request may close this issue.
Input C/C++ Header
Bindgen Invocation
Actual Results
wrapper.c
:Expected Results
wrapper.c
:The text was updated successfully, but these errors were encountered: