Re: useful exercise

Jamie Lokier (lkd@tantalophile.demon.co.uk)
Thu, 14 Jan 1999 10:24:48 +0000


On Thu, Jan 14, 1999 at 12:51:25AM +0000, Ben Hutchings wrote:
> On Sun, 10 Jan 1999, Jamie Lokier wrote:
> <snip>
> > 3. The "always defined" form is more flexible, because you have
> > the option of using `#if X', `if (X)' or even using X in an
> > expression, e.g. `X ? a : b', `X && blah_blah'.
> <snip>
>
> The C pre-processor has a defined() operator that gives you exactly
> the same flexibility with the possibly-defined form.

Wrong. defined() only works following #if. You cannot use it to test
for symbols in a C expression.

-- Jamie

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