Re: turning g_assert* into warnings



On 10/12/07, Emmanuele Bassi <ebassi gmail com> wrote:
> On Fri, 2007-10-12 at 14:40 +0200, Mathias Hasselmann wrote:
>
> > So I guess what you really want is some kind of "g_soft_assert" or some
> > "g_warn_if_fail".
>
> +1 on a g_warn_if_fail() API addition.

What is wrong with:

if (!everything_is_ok)
    g_warning ("blaha");

? Those double or triple negatives that the *_if_fail routines
introduce always confuses me: g_return_if_fail (!(flag != SOMETHING &&
x)); ugh..


-- 
mvh Björn



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