Graham Percival <[email protected]> writes:

> On Fri, Oct 8, 2010 at 6:35 AM, David Kastrup <[email protected]> wrote:
>> Graham Percival <[email protected]> writes:
>>> in that the macro might look like a single statement, but it gets
>>> expanded into two.  (is it worth enclosing the non-else definition
>>> with a { } to avoid this?)
>>
>> "{ ... }" is not sufficient since that already is a complete statement
>> without adding a semicolon, unlike a function call.
>>
>> The wrapper needs to be "do { ... } while (0)".  It is an idiom that
>> compilers optimize away.
>
> Ok, how's this patch?

Looks good.

-- 
David Kastrup

_______________________________________________
lilypond-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to