Re: NutEnterCritical with multiple local variables

Dušan <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.ethernut
Message-ID <[email protected]>
Just to int temp_.

Then the {} parenthesis will be no more needed in NutEnterCritical, NutExitCritical because there will be no more need to declare such a local variable.
There are functions with NutEnter / NutExit pairs , e.g. UsartResetBuffer() in dev/usart.c.

Are you sure all compilers can optimize existing code?

Dušan

On 23.11.2015 0:38, Nathan Moore wrote:
> What code would the NutUseCritical macro expand to?  Why is it needed?
>
> Nathan
_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.