Re: return_if_fail ideas for glib



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

    -- Darin





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