Re: g_assert vs. g_return_if_fail
- From: Martin Kalbfuß <ma kalbfuss web de>
- To: LRN <lrn1986 gmail com>, Gtk+ <gtk-list gnome org>
- Subject: Re: g_assert vs. g_return_if_fail
- Date: Wed, 20 Jan 2010 23:40:32 +0100
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]