g_return_if_fail really useful? Better let them die!!



There are so much messages like 

** WARNING **: file gdkdraw.c: line 77 (gdk_draw_rectangle): "gc != NULL"

** WARNING **: file gdkdraw.c: line 55 (gdk_draw_line): "gc != NULL"

when using gimp-0.99.15 and gtk+-971201.

I wonder if the return_if_fail macros are really useful.

The conditions they are trying to catch are so fatal that it would be
best to let the program die and study the core dump IMHO.

-- 
Fritz Heinrichmeyer mailto:fritz.heinrichmeyer@fernuni-hagen.de
FernUniversitaet Hagen, LG Elektronische Schaltungen, 58084 Hagen (Germany)
tel:+49 2331/987-1166 fax:987-355 http://ES-sun1.fernuni-hagen.de/~jfh
PGP fingerprint (mail for key): 160BDF84 3F2F63C0  5CA20D31 3E42D116



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