i think that warrants an assert too. using asserts to check
preconditions in functions seems like a reasonable thing to do.
rob
Walter B. Ligon III wrote:
I'm wanting to check the group's collective wisdom on the use of assert
as opposed to a comparable check and error via gossip.
It seems to me it is desireable to use assert in any situation that is
considered so erroneous that the code cannot reasonably continue.
I'm running into a few situations where its not immediately clear
whether this is the case or not. For example, if someone calls a
function I've written to free a state machine data structure and the
pointer is NULL, things are very, very wrong. I *think* this warrants
an assert, but I just get concerned that with so many asserts in the
code we might be bailing more quicly than we should.
So, I'm just looking for a sanity check.
comments?
Walt
_______________________________________________
Pvfs2-developers mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers