g_assert vs. g_return_if_fail

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

 



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@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux