home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / cplus / 11416 < prev    next >
Encoding:
Text File  |  1992-07-23  |  1.0 KB  |  26 lines

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