🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #5983

Re: #ifdec

#5983
From: Andreas Schwab
Date: Mon, 20 Jan 1997 00:00
13 lines
1175 bytes
Benjamin D Chambers <chambersb@juno.com> writes:

|> I think Gcc should include the compiler directive #ifdec, to test whether
|> or not a given symbol has been declared.  I've noticed that many people
|> have problems with multiple declarations, and IMHO this would be an
|> appropriate solution.

No.  The preprocessor knows nothing about declarations.  It's a similar
reason as why you can't use sizeof in preprocessor expressions.
-- 
Andreas Schwab                                      "And now for something
schwab@issan.informatik.uni-dortmund.de              completely different"
Technical Details
Message-ID: <vyz4tgcwr6g.fsf@issan.informatik.uni-dortmund.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <19970119.075603.4975.2.chambersb@juno.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113d02,1cb45d5163c8c2a9
X-Google-Attributes: gid113d02,public
From: schwab@issan.informatik.uni-dortmund.de (Andreas Schwab)
Subject: Re: #ifdec
Date: 1997/01/20
Message-ID: <vyz4tgcwr6g.fsf@issan.informatik.uni-dortmund.de>
X-Deja-AN: 211002003
sender: schwab@issan.informatik.uni-dortmund.de
references: <19970119.075603.4975.2.chambersb@juno.com>
organization: Dortmund University, Germany
x-gateway: relay5.UU.NET from bug-gcc to gnu.gcc.bug; Mon, 20 Jan 1997 05:57:55 EST
newsgroups: gnu.gcc.bug