This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: CYG_ASSERT_* messages inverted
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Andrew Lunn <andrew dot lunn at ascom dot ch>
- Cc: eCos patches <ecos-patches at sources dot redhat dot com>
- Date: 15 May 2003 06:58:45 -0600
- Subject: Re: CYG_ASSERT_* messages inverted
- Organization: MLB Associates
- References: <20030515121431.GN25329@biferten.ma.tech.ascom.ch>
On Thu, 2003-05-15 at 06:14, Andrew Lunn wrote:
> Am i not understanding something here. If the assertion has failed,
> whatever we are checking is invalid, not valid?
>
I guess it's all in how you think about it. The way I read the
macros
CYG_ASSERT((c), "msg")
reads "properly" in source, i.e. (c) must be true for "msg" to hold.
I agree that when it fails (and prints), the message may seem
backward.
Final comment should come from those most responsible - Nick?
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates