Graham Percival <gra...@percival-music.ca> writes: > On Fri, Oct 8, 2010 at 6:35 AM, David Kastrup <d...@gnu.org> wrote: >> Graham Percival <gra...@percival-music.ca> 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 lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-devel