On 01/20/2010 12:28 PM, Martin Kalbfuß wrote:
> Hi,
> 
> I don't understand the need for g_return_if_fail like functions. Why not
> use g_assert here?
> 
> In pure C, I used either assert for programming errors or returned an
> error indicator for expected errors. But where to use g_return_if_fail?

g_assert aborts the process, g_return_if_fail() doesn't.  It's a disastrous
idea to g_assert() in a library for example.



behdad


> Thanks.
_______________________________________________
gtk-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to