-
Notifications
You must be signed in to change notification settings - Fork 456
Add EADDRNOTAVAIL error to rust #455
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
Conversation
Perhaps we should add all the ones from |
That would probably be a good idea. But doing it from hand is not the best work to do :-). Maybe we can build some Marco to do it? |
What about a short macro to make it easier, eg that you have to write it like this to declare /// Exec format error.
declare_err!(ENOEXEC); |
I think the doc comment will need to be inside the macro invocation for this to work. |
really? if the macro just expands to |
I think I will just try it out |
Yes, sadly you are right, I think it's still a bit easier to write |
This will be used for network drivers. Signed-off-by: Finn Behrens <[email protected]>
rebased and moved to the macro, Will add missing errors now |
This makes declaring an error a bit easier, as the specific error only has to be written once. This also saves repetitive code. Signed-off-by: Finn Behrens <[email protected]>
@ojeda I now included all errors from |
Signed-off-by: Finn Behrens <[email protected]>
This will be used for network drivers. (#439)