On Fri, 19 Oct 2007, Federico Mena Quintero wrote:
> On Wed, 2007-10-17 at 11:56 +0200, Tim Janik wrote:
>> - extend the g_assert() docs to note that:
>>1) programmers are more likely to want to use g_warn_if_fail instead
>> (particularly for libraries, allthough the destabilizing effect
On Wed, 2007-10-17 at 11:56 +0200, Tim Janik wrote:
> - extend the g_assert() docs to note that:
>1) programmers are more likely to want to use g_warn_if_fail instead
> (particularly for libraries, allthough the destabilizing effects
> of g_assert are also worth avoiding in applicai
Tim Janik wrote:
> hey All.
>
> proposing to turn g_asert into a warning:
>http://mail.gnome.org/archives/gtk-devel-list/2007-October/msg00053.html
> was obviously not perceived too well.
>
> as i read it, most people are not against my basic
> reasoning, but are clearly in favour of adding
> g
Armin Burgmeier wrote:
> I think the proposal is that g_warn_if_fail() shall return (in contrast
> to g_assert(), which most of the time aborts the program), but it shall
> not return from the function calling it. g_warn_if_fail() is supposed to
> do exactly what its name implies: Just print a war
On Wed, 2007-10-17 at 09:44 -0700, Brian J. Tarricone wrote:
> Marco Barisione wrote:
> > Il giorno mer, 17/10/2007 alle 11.56 +0200, Tim Janik ha scritto:
> >> - add g_warn_if_fail (condition); which produces a critical
> >>warning about failing assertions but contrary to g_assert
> >>ret
Marco Barisione wrote:
> Il giorno mer, 17/10/2007 alle 11.56 +0200, Tim Janik ha scritto:
>> - add g_warn_if_fail (condition); which produces a critical
>>warning about failing assertions but contrary to g_assert
>>returns.
>
> If it's called g_warn_if_fail() I would expect a g_warning()
Il giorno mer, 17/10/2007 alle 11.56 +0200, Tim Janik ha scritto:
> - add g_warn_if_fail (condition); which produces a critical
>warning about failing assertions but contrary to g_assert
>returns.
If it's called g_warn_if_fail() I would expect a g_warning() not a
g_critical().
--
Marco B
hey All.
proposing to turn g_asert into a warning:
http://mail.gnome.org/archives/gtk-devel-list/2007-October/msg00053.html
was obviously not perceived too well.
as i read it, most people are not against my basic
reasoning, but are clearly in favour of adding
g_warn_if_fail or a similar varian