www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/05/18/05:57:57

From: pws AT s-a DOT amtp DOT liv DOT ac DOT uk (Peter Stephenson)
Subject: Re: Problem with the preprocessor
To: sperber AT midi DOT informatik DOT uni-tuebingen DOT de (Michael Sperber [Mr. Preprocessor])
Date: Tue, 18 May 1993 10:28:50 +0100 (BST)
Cc: andy AT green DOT la DOT asu DOT edu, djgpp AT sun DOT soe DOT clarkson DOT edu

Michael Sperber [Mr. Preprocessor] writes:
> Andy Vaught wrote:
> 
> >#define stringize(x) # x
> >#define QSIZE 50
>
> ...  What is needed is:
> 
> #define magic_stringize(x) x
> #define stringize(x) # x

Slight slip of the keyboard... amend that to

#define magic_stringize(x)  stringize(x)
#define stringize(x) # x

(Yes, I tested it.)
Peter
-- 
Peter Stephenson     <pws AT s-a DOT amtp DOT liv DOT ac DOT uk> or <PWS AT UKACRL>  (BITNET)
Dept. of Applied Mathematics and Theoretical Physics
University of Liverpool, P.O. Box 147, Liverpool, L69 3BX, U.K.
Tel. +44 51 794 3784 (also fax) or 3791

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019