Newsgroups: | comp.compilers,comp.human-factors |
From: | macrakis@osf.org (Stavros Macrakis) |
Organization: | OSF Research Institute |
Date: | Thu, 24 Sep 1992 20:52:42 GMT |
References: | 92-09-048 92-09-157 |
Keywords: | C, design, comment |
jimc@tau-ceti.isc-br.com (Jim Cathey) writes:
I for one appreciate the hell out of cpp, because it allows me to maintain
_one_ source for many slightly different environments. That is, I use the
#ifdef for what it was primarily intended for, rather than an elaborate
commenting mechanism....
Why ifdef's are a bad idea (reason #132):
How do you check your code for type-correctness and syntax-correctness in
the presence of many #ifdef's? Do you compile every possible combination
at least once?
[Other messages have noted that, given the differing extensions among
various C compilers, not all combinations will necessarily be valid on each
machine. -John]
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.