Re: return_if_fail ideas for glib



Darin Adler <darin@eazel.com> writes: 
>     g_return_if_reached
>     g_return_val_if_reached
>

I like that, personally.
 
> 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()?

Havoc




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