This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: cpplib: Command line assertions made easier
On Tue, Oct 31, 2000 at 05:06:12PM -0500, Michael Meissner wrote:
>
> Cool. I do wonder if anybody uses -A. Of course, I've wondered that since
> either I first read about it or it was put in....
In my entire collection of random free-software code (a couple of
gigabytes worth) the only user of #assert or #if #predicate is the GCC
test suite. I think I've seen it used for real in the Solaris system
headers.
The extension comes from SVR4, and whoever wrote the original
documentation for the feature in the cpp manual thought it was the
greatest invention since assembly language. I think it's been toned
down a bit since then. It was supposed to be a structured alternative
to '#ifdef unix', but the -A switches in our CPP_PREDEFINES are just
as scattershot as the -D switches, so it fails to live up.
That's all I know.
zw