[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] generic queue library for AVR GCC?

From: Andy Warner
Subject: Re: [avr-gcc-list] generic queue library for AVR GCC?
Date: Wed, 17 Nov 2004 12:47:42 -0600
User-agent: Mutt/1.2.5i

Bruce D. Lightner wrote:
> [...]
> You all of course know that "," can be used in place of ";" to
> separate C statements.  Therefore we can make a minor change to
> the first macro definition...
> [...]
>       #define begin_critical_section()  SREG, cli()
>       #define end_critical_section(val) SREG = val
>       ....
>       {
>           unsigned char sreg = begin_critical_section();

Is that going to work the way you expect it to ?

I understood that the comma operator returns the type and
value of the rightmost statement (which will be cli()
in this example.)

Andy Warner             Voice: (612) 801-8549   Fax: (208) 575-5634

reply via email to

[Prev in Thread] Current Thread [Next in Thread]