Misuse of debugging functions

Benedikt Meurer benedikt.meurer at unix-ag.uni-siegen.de
Thu Oct 7 20:48:17 CEST 2004


I just had a discussion with Olivier on IRC about the usage of 
g_return_* and g_assert in Xfce apps. These functions are _debugging_ 
functions, they aren't ment for regular programming. That says, a valid 
program would work even if these functions are stripped off. It seems 
that some parts of Xfce misuse these functions as a general replacement 
for normal checks. I'm aware that even some Gnome people do it this way, 
but it shouldn't be done this way. It'd be nice if we could pay a little 
more attention to this in the future.

Benedikt



More information about the Xfce4-dev mailing list