ifdef filter

Jim Webb jrw at hropus.UUCP
Fri Jul 25 04:32:39 AEST 1986


> I know of a GREAT way to filter out "un-executed" ifdefs. It's
> called the C pre-processor! Just feed it your code, with a few
> -Doptions to define which ifdefs you want defined, and presto-changeo,
> it will spit out only the wanted source.

I laugh!  This approach will also expand all the #defines that you use,
making the code quite unreadable, especially if you #include <stdio.h>
-- 
Jim Webb           "Out of phase--get help"         ihnp4!houxm!hropus!jrw



More information about the Comp.sources.unix mailing list