30 ms·
As I said else-thread, there's actually a variation in MISRA-C-2012 (or possibly one of the addenda) for this. Error handling using 'goto' is allowed, as long
by philpem 8y ago
As I said else-thread, there's actually a variation in MISRA-C-2012 (or possibly one of the addenda) for this.
Error handling using 'goto' is allowed, as long as you're jumping forward (i.e. to or near the end of the function). You can't go backwards through the code.
It may require a variation in the project's coding spec but it's certainly possible (because I've been there and done it!)