Ansi cpp question

Jeffrey Biesiadecki jeffb at aquifer.las.uiuc.edu
Sun Oct 7 07:37:43 AEST 1990


asherman at dino.ulowell.edu (Aaron Sherman) writes:

>I've heard that Ansi supports cpp directives that are NOT at the beginning
>of a line. How prevelant is this? Do most implimentations these support this
>ANSIism?

I've seen compilers on mainframes that will not accept white space before
the #...  A safer way to indent cpp directives is to have white space after
the #, like:

#ifdef TOPLEVEL
#  define EXTERN /* nothing */
#else
#  define EXTERN extern
#endif

Jeff Biesiadecki
(jeffb at aquifer.las.uiuc.edu)



More information about the Comp.lang.c mailing list