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
enum
#define
Is your feature request related to a problem? Please describe.
Currently Rust bindgen generates u32 for #define NIX_OK, but nix_err is an int. This then requires an undue cast.
u32
#define NIX_OK
nix_err
int
Other code generators will also have trouble associating a type with these, but a C enum could solve the problem.
Describe the solution you'd like
enum nix_err
Describe alternatives you've considered
Maybe some code generators don't know how to deal with enum's. I would consider such a code generator to be very unfinished.
Additional context
Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is your feature request related to a problem? Please describe.
Currently Rust bindgen generates
u32
for#define NIX_OK
, butnix_err
is anint
. This then requires an undue cast.Other code generators will also have trouble associating a type with these, but a C
enum
could solve the problem.Describe the solution you'd like
enum nix_err
Describe alternatives you've considered
Maybe some code generators don't know how to deal with
enum
's. I would consider such a code generator to be very unfinished.Additional context
Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: