Re: return_if_fail ideas for glib



On Thu, 20 Jul 2000, Darin Adler wrote:

> on 7/20/00 11:42 AM, Havoc Pennington at hp@redhat.com wrote:
> 
> >> Another idea is to have a g_message-like call that does a critical message,
> >> for code that wants to do g_return_if_fail-link stuff in an if statement.
> >> 
> >> g_critical_message
> > 
> > Isn't this just g_warning()?
> 
> Almost. Warnings are at log level G_LOG_LEVEL_WARNING and g_return_if_fal is
> at log level G_LOG_LEVEL_CRITICAL. This made a difference for me for some
> reason, but I can't remember why.
> 
> I should probably have said:
> 
>     g_critical_warning
> or  g_critical

i think we should have a g_critical() implemented in terms of
g_warning().

> 
>     -- Darin
> 

---
ciaoTJ





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