🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #4045

Re: Preprocessor question

#4045
From: James M. Curran
Date: Tue, 19 Sep 1995 17:55
10 lines
577 bytes
  >> #define STR(wibble) #wibble
  >> #define X 1
  >> #define STRX STR(X)

  I believe a second level of expansion should do it:

#define STR1(wibble) #wibble
#define STR(wobble)  STR1(wobble)
#define X 1
#define STRX STR(X)
Technical Details
Message-ID: <43n06l$289$4@mhade.production.compuserve.com>
Path: arc1-ca.pugleaf.net!news.production.compuserve.com!news
References: <43js0n$1j5@icebox.mfltd.co.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.production.compuserve.com!news
From: James M. Curran <72261.655@CompuServe.COM>
Newsgroups: comp.std.c
Subject: Re: Preprocessor question
Date: 19 Sep 1995 17:55:33 GMT
Organization: CompuServe, Inc. (1-800-689-0736)
Message-ID: <43n06l$289$4@mhade.production.compuserve.com>
References: <43js0n$1j5@icebox.mfltd.co.uk>