This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: 'do {} while (0)' replacement
- From: John Love-Jensen <eljay at adobe dot com>
- To: Christoph Bartoschek <bartoschek at gmx dot de>, GCC-help <gcc-help at gcc dot gnu dot org>
- Date: Wed, 08 Oct 2008 14:57:56 -0500
- Subject: Re: 'do {} while (0)' replacement
Hi Christoph,
> What about:
>
> do {
> if (i < 0) {
> break;
> }
> } while (0)
The break will break out of the once-thru do-while, not out of Frank's
infinite for(;;).
--Eljay