Article View: comp.std.c++
Article #3339Re: #ifdef XXXX
From: Michael Cook
Date: Sat, 10 Feb 1996 08:50
Date: Sat, 10 Feb 1996 08:50
24 lines
1385 bytes
1385 bytes
>>>>> "JRW" == John R Williams <johnw@jove.acs.unt.edu> writes: JRW> Also something I have often wished for was something like #warning JRW> which would cause the compiler to emit a warning. I'd like to see `#assert': #assert sizeof(int)==4 which would be like #if sizeof(int)!=4 #error #endif except that it would work. That is, #assert would be a compiler directive, not a preprocessor directive, and so there would be no restrictions on the kinds of expressions. Michael. --- [ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu. Contact address: std-c++-request@ncar.ucar.edu. Moderation policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html. ]
Technical Details
Message-ID:
<r4spgksdmg.fsf@erawan.cognex.com>Path:
arc1-ca.pugleaf.net!in1.uu.net!bounce-backReferences:
<1996Feb1.092058.4745@iiasa.ac.at> <4fe1jt$scn@hermes.acs.unt.edu>Show Full Headers
Complete Article Headers
From: Michael Cook <mcook@cognex.com> Message-ID: <r4spgksdmg.fsf@erawan.cognex.com> X-Original-Date: 09 Feb 1996 10:49:27 -0500 Path: arc1-ca.pugleaf.net!in1.uu.net!bounce-back Date: 10 Feb 96 08:50:14 GMT Approved: fjh@cs.mu.oz.au Return-Path: <daemon@meeker.UCAR.EDU> Newsgroups: comp.std.c++ Subject: Re: #ifdef XXXX Organization: Cognex Corporation, Natick, Massachusetts References: <1996Feb1.092058.4745@iiasa.ac.at> <4fe1jt$scn@hermes.acs.unt.edu> X-Newsreader: September Gnus v0.35/Emacs 19.30 X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUBMRxcWOEDnX0m9pzZAQFUSwF+MNms+Z5xEE5GDLXB0F0b3fgTlvXU2sPQ qNMwJ1l7PtZBJhwmJH7//kFESDB9JH7C =sie6