Re: g_assert vs. g_return_if_fail



But shouldn't the function return GError in such a case?

g_return_if_fail is like retunring an error without the ability to
handle it. I'm still not sure when to use it.

I assume g_assert is only useful in programs and internal library
functions.


Am Donnerstag, den 21.01.2010, 00:41 +0300 schrieb LRN:
> nd, AFAIK, it also logs warnings.



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