From: Michael Buesch <mbuesch@freenet.de>
To: dcn@sgi.com (Dean Nelson)
Cc: linux kernel mailing list <linux-kernel@vger.kernel.org>
Subject: Re: [RFC] replace assorted ASSERT()s by something officially sanctioned
Date: Wed, 23 Jun 2004 21:02:24 +0200 [thread overview]
Message-ID: <200406232102.26678.mbuesch@freenet.de> (raw)
In-Reply-To: <40D9D09D.mailx49E1J10NF@aqua.americas.sgi.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> +#ifdef DEBUG
> +#define DBUG_ON(condition) BUG_ON(condition)
> +#else
> +#define DBUG_ON(condition)
> +#endif
As condition is lost when DEBUG is not defined, what about that:
#else
# define DBUG_ON(condition) do { if (condition) { /* nothing */ } } while (0)
#endif
letting the compiler optimize away all the stuff and removing
the risk of loosing an expression in ( ).
- --
Regards Michael Buesch [ http://www.tuxsoft.de.vu ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFA2dPAFGK1OIvVOP4RAuPrAJ9juu+dZLSt1QjsMQeko82n9OgLqgCeN0TQ
Fec6PgrBWBRwLxl6U65QVmw=
=l7+o
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2004-06-23 19:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-23 18:49 [RFC] replace assorted ASSERT()s by something officially sanctioned Dean Nelson
2004-06-23 19:02 ` Michael Buesch [this message]
2004-06-23 19:46 ` Jeff Garzik
2004-06-28 17:27 ` Dean Nelson
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=200406232102.26678.mbuesch@freenet.de \
--to=mbuesch@freenet.de \
--cc=dcn@sgi.com \
--cc=linux-kernel@vger.kernel.org \
/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