🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1729

Re: Making the preprocessor substitute a '#'

#1729
From: Doug Gwyn
Date: Tue, 18 Sep 1990 21:35
9 lines
920 bytes
In article <28540:Sep1819:40:1490@kramden.acf.nyu.edu> brnstnd@kramden.acf.nyu.edu (Dan Bernstein) writes:
-In article <6261@castle.ed.ac.uk> keith@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?
Technical Details
Message-ID: <13908@smoke.BRL.MIL>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!adm!smoke!gwyn
References: <6261@castle.ed.ac.uk> <28540:Sep1819:40:1490@kramden.acf.nyu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!adm!smoke!gwyn
From: gwyn@smoke.BRL.MIL (Doug Gwyn)
Newsgroups: comp.std.c
Subject: Re: Making the preprocessor substitute a '#'
Message-ID: <13908@smoke.BRL.MIL>
Date: 18 Sep 90 21:35:26 GMT
References: <6261@castle.ed.ac.uk> <28540:Sep1819:40:1490@kramden.acf.nyu.edu>
Organization: U.S. Army Ballistic Research Laboratory, APG, MD.
Lines: 9