do { ... } while(0) necessity? (was Re: Copyovering on SIG{SEGV,BUS,..})

From: Chris Jacobson (fear@ATHENET.NET)
Date: 05/02/98

On 5/2/98 12:06 PM, George (greerga@CIRCLEMUD.ORG) stated:

>Just to nitpick, that won't work unless you add {} to the if...else or
>do{}while(0) to the macro.

Is the `do' and `while(0)' parts really necessary?

There are some sections of my code that I need to embed within a block,
but aren't part of a control block... I simply use {...} without
Neither of my compilers have complained (with full warnings on)...

- Chris Jacobson

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

This archive was generated by hypermail 2b30 : 12/15/00 PST