9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Ralph Corderoy <ralph@inputplus.co.uk>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] what's wrong with this?
Date: Mon, 30 Sep 2002 09:28:47 +0000	[thread overview]
Message-ID: <37e3.3d970458.f1b92@blake.inputplus.co.uk> (raw)
In-Reply-To: <1f535a7124b25e5b45a5c391689c55fa@caldo.demon.co.uk>

Hi Charles,

> i was wondering whether the C assert macro was regarded as
> an expression or a statement, but as usual my C book isn't
> nearby.

Harbison and Steele say it acts as if it was

    void assert(int expr);

and if NDEBUG is #define'd then an implementation may #define assert to
be

    ((void)0)

Cheers,


Ralph.


  parent reply	other threads:[~2002-09-30  9:28 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-27 14:28 Charles Forsyth
2002-09-30  9:17 ` Douglas A. Gwyn
2002-09-30  9:28 ` Ralph Corderoy [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-10-07 14:34 Russ Cox
2002-09-27 15:36 rog
2002-09-30  9:18 ` Douglas A. Gwyn
2002-09-27 14:12 Peter A. Cejchan
2002-09-27 14:09 Sape Mullender
2002-10-07 13:53 ` peter a. cejchan
2002-09-27 14:05 Russ Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=37e3.3d970458.f1b92@blake.inputplus.co.uk \
    --to=ralph@inputplus.co.uk \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).