Re: return_if_fail ideas for glib
- From: Darin Adler <darin eazel com>
- To: Havoc Pennington <hp redhat com>
- Cc: Gtk Developers <gtk-devel-list redhat com>
- Subject: Re: return_if_fail ideas for glib
- Date: Thu, 20 Jul 2000 11:50:07 -0700
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]