g_assert vs. g_return_if_fail
- From: Martin Kalbfuß <ma kalbfuss web de>
- To: Gtk+ <gtk-list gnome org>
- Subject: g_assert vs. g_return_if_fail
- Date: Wed, 20 Jan 2010 18:28:40 +0100
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?
Thanks.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]