Uh oh!
There was an error while loading. Please reload this page.
Add EADDRNOTAVAIL error to rust - #455
Conversation
Uh oh!
There was an error while loading. Please reload this page.
ojeda
commented
Jul 23, 2021
Perhaps we should add all the ones from |
kloenk
commented
Jul 24, 2021
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? |
kloenk
commented
Aug 20, 2021
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); |
bjorn3
commented
Aug 20, 2021
I think the doc comment will need to be inside the macro invocation for this to work. |
kloenk
commented
Aug 20, 2021
really? if the macro just expands to |
kloenk
commented
Aug 20, 2021
I think I will just try it out |
kloenk
commented
Aug 20, 2021
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 <me@kloenk.de>
kloenk
commented
Aug 20, 2021
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 <me@kloenk.dev>
kloenk
commented
Aug 20, 2021
@ojeda I now included all errors from |
Signed-off-by: Finn Behrens <me@kloenk.dev>
This will be used for network drivers. (#439)