Re: turning g_assert* into warnings
- From: "BJörn Lindqvist" <bjourne gmail com>
- To: "Emmanuele Bassi" <ebassi gmail com>
- Cc: gtk-devel-list gnome org
- Subject: Re: turning g_assert* into warnings
- Date: Sat, 13 Oct 2007 03:10:54 +0000
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]