|
From: Nathan C. <co...@bu...> - 2003-02-25 18:37:22
|
I've noticed that in a lot of places in gaim, there are comments like
'this should never happen', and such. I am wondering why the
g_assert(...) function is not used in gaim. It would alert people
that these unreachable cases are being reached. IMHO, an assertion is
better than just letting the functions return without flagging an
error.
(I noticed that the following change was commited to dialogs.c today:
+ if (!who || !*who) {
+ /* this shouldn't ever happen */
return;
}
)
-Nathan
--=20
Nathan J. Conrad (XXX)-687-7449 http://bungled.net
312 Moore Hall // UNC-C // Charlotte, NC 28223-0001
GPG: F4FC 7E25 9308 ECE1 735C 0798 CE86 DA45 9170 3112 |