Re: asm/unistd.h

Stephen Thomas (stephen.thomas@insignia.com)
Thu, 05 Apr 2001 15:35:53 +0100


Joseph Carter wrote:
> This doesn't follow in my mind. I can't think of a case where a { ... }
> would fail, but a do { ... } while (0) would succeed. The former would
> also save a few keystrokes.

#define FOO(x) { wibble(x); wobble((x)+1);}

if (something)
FOO(23);
else /* Compile goes crump here. */
another_thing();

Stephen Thomas
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/