🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1727

Re: Making the preprocessor substitute a '#'

#1727
From: Dan Bernstein
Date: Tue, 18 Sep 1990 19:40
8 lines
743 bytes
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?

---Dan
Technical Details
Message-ID: <28540:Sep1819:40:1490@kramden.acf.nyu.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!adm!cmcl2!kramden.acf.nyu.edu!brnstnd
References: <6261@castle.ed.ac.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!adm!cmcl2!kramden.acf.nyu.edu!brnstnd
From: brnstnd@kramden.acf.nyu.edu (Dan Bernstein)
Newsgroups: comp.std.c
Subject: Re: Making the preprocessor substitute a '#'
Message-ID: <28540:Sep1819:40:1490@kramden.acf.nyu.edu>
Date: 18 Sep 90 19:40:14 GMT
References: <6261@castle.ed.ac.uk>
Organization: IR
Lines: 8