Messages in this thread |  | | Date | Wed, 6 Sep 2000 12:37:09 +1200 | From | Chris Wedgwood <> |
| |
Oh, yes there is.
if (CONFIG_FOO) { .... } else { .... } gcc can optimize that away and parser will see the whole thing.
I'm not sure I like this construct either.
Yes, it does mean gcc makes all the decisions and allows the c-compiler to to more checking (as opposed to the preprocessor which obviosly is really dumb) but it also assumes the compiler will always elimiate dead code and I'm not convinced it's any more readable that have "#if foo" scattered through the code.
--cw - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
|  |