🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2686

#if query

#2686
From: cepek
Date: Fri, 05 Apr 1991 22:19
20 lines
1121 bytes
Does ANSI really state that

       #if ABC == DEF

evaluates to FALSE if symbol DEF is not defined!?

If so, I'm disappointed, since  #ifdef  and  #if defined  already
provide that functionality.

If not, I'd appreciate the reference in the spec.  (Neither of my
references [K&R II, Kochan] address this issue directly.)

Thanks in advance.

 ,---------------------------------,___________________________
/  Mike Cepek, Programmer/Analyst / Internet: CEPEK@MGI.COM   /
\  Management Graphics, Inc.      \    Voice: +1 612/851-6112 \  "Engage."
/  1401 East 79th Street          / Operator: +1 612/854-1220 /
\  Minneapolis, MN  55425  USA    \      Fax: +1 612/854-6913 \
 `--------------------------------/___________________________/
Technical Details
Message-ID: <1991Apr5.161945.889@vixvax.mgi.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!know!news.cs.indiana.edu!msi.umn.edu!vixvax.mgi.com!cepek

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!know!news.cs.indiana.edu!msi.umn.edu!vixvax.mgi.com!cepek
From: cepek@vixvax.mgi.com
Newsgroups: comp.std.c
Subject: #if query
Message-ID: <1991Apr5.161945.889@vixvax.mgi.com>
Date: 5 Apr 91 22:19:45 GMT
Organization: Management Graphics, Inc.
Lines: 20