Making the preprocessor substitute a '#'

Dan Bernstein brnstnd at kramden.acf.nyu.edu
Wed Sep 19 05:40:14 AEST 1990


In article <6261 at castle.ed.ac.uk> keith at earth.ox.ac.uk writes:
> Is there any way of defining a macro in an ANSI preprocessor which
> substitutes  a '#' plus some other text.  That is, I want to say
> #define FOO  # pragma bar

Why not just leave out the # and use it as #FOO?

---Dan



More information about the Comp.std.c mailing list