home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!darwin.sura.net!gatech!ncar!ico!auto-trol!davgot
- From: davgot@auto-trol.com (David Gottner)
- Subject: Re: C++ compiler macros
- Message-ID: <1992Jul23.143046.1098@auto-trol.com>
- Sender: news@auto-trol.com
- Nntp-Posting-Host: davgot.auto-trol.com
- Organization: Auto-trol Technology Corporation
- References: <1992Jul21.001718.8580@taumet.com> <1992Jul22.185457.21999@delfin.com>
- Distribution: usa
- Date: Thu, 23 Jul 1992 14:30:46 GMT
- Lines: 12
-
- >I wouldn't want to bet on the test of __STDC__ not generating an error
- >when __STDC__ was not defined, either, although it worked just fine on
- >Sun C++ when I tried it. Sun C++ seems to treat undefined symbols as
- >having a value of 0 -- something I can find no justification for (though
- >I haven't tried very hard). Anyone know if this can be relied on?
-
- The ANSI standard specifies that undefined symbols in #if expressions
- get the value 0.
- --
- Amrit Prem |
- davgot@auto-trol.com | This area is intentionally left blank
- {...}ncar!ico!auto-trol!younam |
-