[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: abort vs. assert

From: Paolo Bonzini
Subject: Re: abort vs. assert
Date: Tue, 16 Mar 2010 08:04:46 +0100

On Mon, Mar 15, 2010 at 22:36, Bruno Haible <address@hidden> wrote:
> Hi Jim,
>> You might just as well define and use your own macro,
>>     #define ASSERT(e) do { if (!(e)) abort (); } while (0)
> Oh yes, this one is perfectly fine with me.

But it wouldn't protect you from

#define abort __builtin_unreachable

I honestly think you have a solution in search of a problem.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]