[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk
Subject:    g_assert vs. g_return_if_fail
From:       Martin =?ISO-8859-1?Q?Kalbfu=DF?= <ma.kalbfuss () web ! de>
Date:       2010-01-20 16:38:56
Message-ID: 1264008520.2865.12.camel () localhost
[Download RAW message or body]

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.

_______________________________________________
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic