This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] Have assert macros
- From: Paul Brook <paul at codesourcery dot com>
- To: gcc at gcc dot gnu dot org
- Cc: Nathan Sidwell <nathan at codesourcery dot com>
- Date: Tue, 24 Aug 2004 23:31:37 +0100
- Subject: Re: [RFC] Have assert macros
- Organization: CodeSourcery
- References: <412A49D5.2070809@codesourcery.com>
On Monday 23 August 2004 20:47, Nathan Sidwell wrote:
> Thus I propose adding two macros,
> gcc_assert (EXPR)
> gcc_unreachable ()
Why not gcc_abort() ?
<...>
> Opinions on this proposal?
I like it.
gfortran already has assert() scattered all over the place. It'd be nice to
turn this into something a little more gcc-friendly.
Paul