Right. The error number base needs to be managed just like the message ID base… 
D.

From: Jon Loeliger [mailto:[email protected]]
Sent: Tuesday, January 23, 2018 9:39 AM
To: Ole Troan <[email protected]>
Cc: Dave Barach (dbarach) <[email protected]>; vpp-dev <[email protected]>
Subject: Re: [vpp-dev] RFC: Error Codes

On Tue, Jan 23, 2018 at 8:12 AM, Ole Troan 
<[email protected]<mailto:[email protected]>> wrote:
Dear Dave,

> I would be tempted to have the compiler emit 
> "foreach_<api-filename>_api_error" macros [or similar]:
>
> #define foreach_foo_api_error \
> _(SUCCESS, "Success") \
> _(ERROR, "This didn't go well")
>
> To minimize pain in upgrading existing C-code...

Ah, yes of course.
Done.
https://gerrit.fd.io/r/#/c/10204/

Cheers,
Ole

Glad to see you guys like the notion!

With this, will plugins have to manage an error number base for
each plugin now?  Or will that be some form of magic behind the scene?

Thanks,
jdl

_______________________________________________
vpp-dev mailing list
[email protected]
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to