delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/19/08:30:19

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Preprocessor # ##
Date: 19 Oct 2000 12:15:41 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 18
Message-ID: <8smold$i7d$1@nets3.rz.RWTH-Aachen.DE>
References: <39ED93DC DOT 6C3ACD2F AT ma DOT tum DOT de>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 971957741 18669 137.226.32.75 (19 Oct 2000 12:15:41 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 19 Oct 2000 12:15:41 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Waldemar Schultz <schultz AT ma DOT tum DOT de> wrote:
> silly question, but I don't manage to fix it.
> given

> long double sinlong(long double);
> #define sinr(x) sinlong(x)
> #define ACTUAL_NAME(s) ...???...
>                        ^^^^^^^^^^ fill in please

The fill-in is:

#define stringify(x) #x
#define ACTUAL_NAME(s) stringify(s)

Checked it out: works.
-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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