MESSAGE
DATE | 2011-06-11 |
FROM | Ruben Safir
|
SUBJECT | Subject: [NYLXS - HANGOUT] (fwd) Re: Using sizeof in the preprocessor
|
From owner-hangout-outgoing-at-mrbrklyn.com Sat Jun 11 01:04:49 2011 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: by www2.mrbrklyn.com (Postfix) id 34B23100B05; Sat, 11 Jun 2011 01:04:48 -0400 (EDT) Delivered-To: hangout-outgoing-at-www2.mrbrklyn.com Received: by www2.mrbrklyn.com (Postfix, from userid 28) id 36A3E100B0F; Sat, 11 Jun 2011 01:04:46 -0400 (EDT) Delivered-To: hangout-at-nylxs.com Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by www2.mrbrklyn.com (Postfix) with ESMTP id 74ACB100B0F for ; Sat, 11 Jun 2011 01:04:44 -0400 (EDT) Received: from panix2.panix.com (panix2.panix.com [166.84.1.2]) by mailbackend.panix.com (Postfix) with ESMTP id DD7A0320E1 for ; Sat, 11 Jun 2011 01:04:42 -0400 (EDT) Received: by panix2.panix.com (Postfix, from userid 20529) id CCBDE33C5F; Sat, 11 Jun 2011 01:04:42 -0400 (EDT) From: Ruben Safir To: hangout-at-nylxs.com Subject: [NYLXS - HANGOUT] (fwd) Re: Using sizeof in the preprocessor User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (NetBSD/5.1 (i386)) Message-Id: <20110611050442.CCBDE33C5F-at-panix2.panix.com> Date: Sat, 11 Jun 2011 01:04:42 -0400 (EDT) Sender: owner-hangout-at-mrbrklyn.com Precedence: bulk Reply-To: hangout-at-mrbrklyn.com
-- 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 --
|
|