🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2694

Re: #if query

#2694
From: Doug Gwyn
Date: Sat, 06 Apr 1991 04:50
7 lines
728 bytes
In article <1991Apr5.161945.889@vixvax.mgi.com> cepek@vixvax.mgi.com writes:
>Does ANSI really state that
>       #if ABC == DEF
>evaluates to FALSE if symbol DEF is not defined!?

No -- undefined identifiers are replaced by 0 in #if expressions.
That was existing behavior in e.g. the Reiser CPP.
Technical Details
Message-ID: <15739@smoke.brl.mil>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!gatech!ncar!hsdndev!cmcl2!adm!smoke!gwyn
References: <1991Apr5.161945.889@vixvax.mgi.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!gatech!ncar!hsdndev!cmcl2!adm!smoke!gwyn
From: gwyn@smoke.brl.mil (Doug Gwyn)
Newsgroups: comp.std.c
Subject: Re: #if query
Message-ID: <15739@smoke.brl.mil>
Date: 6 Apr 91 04:50:47 GMT
References: <1991Apr5.161945.889@vixvax.mgi.com>
Organization: U.S. Army Ballistic Research Laboratory, APG, MD.
Lines: 7