-
Notifications
You must be signed in to change notification settings - Fork 67
[Feature] Configuration for alias for variadic C function #398
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
Labels
Comments
I see 2 workarounds for generating variadic functions -
cc @dcharkes |
Any update? |
Closed
HosseinYousefi
added a commit
that referenced
this issue
Nov 16, 2023
HosseinYousefi
added a commit
that referenced
this issue
Nov 16, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Background
According to dart-lang/sdk#38578 (comment), we have to manually declare several common functions as alias for variadic C function.
Every time re-generating the
open2
, we have to manully edit the generated_dylib.lookupFunction<>('open2'))
to_dylib.lookupFunction<>('open'))
https://github.com/Sunbreak/logic_conf.dart/blob/a2b18a947fec46859ad09fcd44050a305c14909d/linux/libc.h#L10
https://github.com/Sunbreak/logic_conf.dart/blob/a2b18a947fec46859ad09fcd44050a305c14909d/lib/src/linux/libc.dart#L14-L22
Feature Request
Could we have some config for variadic alias?
The text was updated successfully, but these errors were encountered: