Making the preprocessor substitute a '#'
Doug Gwyn
gwyn at smoke.BRL.MIL
Wed Sep 19 07:35:26 AEST 1990
In article <28540:Sep1819:40:1490 at kramden.acf.nyu.edu> brnstnd at kramden.acf.nyu.edu (Dan Bernstein) writes:
-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?
Because it doesn't work, perhaps?
More information about the Comp.std.c
mailing list