MESSAGE
DATE | 2011-06-11 |
FROM | Ruben Safir
|
SUBJECT | Subject: [NYLXS - HANGOUT] (fwd) Re: Using sizeof in the preprocessor
|
-- forwarded message -- Path: reader1.panix.com!panix!news.linkpendium.com!news.linkpendium.com!feeder.erje.net!news.ecp.fr!jussieu.fr!not-for-mail From: Alain Ketterlin Newsgroups: comp.lang.c++ Subject: Re: Using sizeof in the preprocessor Date: Sat, 21 May 2011 21:54:51 +0200 Organization: Universites Paris VI/Paris VII - France Lines: 18 Message-ID: <87zkmfde2c.fsf-at-dpt-info.u-strasbg.fr> References: <4dd7bfa5$0$7624$9b4e6d93-at-newsspool1.arcor-online.net> <4dd809a7$0$2844$7b1e8fa0-at-news.nbl.fi> NNTP-Posting-Host: mob19.u-strasbg.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: vishnu.jussieu.fr 1306007691 47186 130.79.6.148 (21 May 2011 19:54:51 GMT) X-Complaints-To: usenet-at-vishnu.jussieu.fr NNTP-Posting-Date: Sat, 21 May 2011 19:54:51 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:s3J9vYhJHUoK4SLizK81vA176cM= Xref: panix comp.lang.c++:1085129
Juha Nieminen writes:
> Huibert Bol wrote: >> Identifiers in #if expressions are evaluated as zero > > It seems that at least with gcc "#if true" and "#if false" work as one > would expect. Is this standard?
Funny idea. Here (gcc/g++ 4.4.4), gcc and g++ both with -E give different results on the following input:
#if true #error "then" #else #error "else" #endif
-- Alain. -- end of forwarded message --
|
|