22 Mar
2005
22 Mar
'05
4:45 p.m.
Vladimir Prus wrote:
Yes. assert is not equivalent to perror/abort. The two have different meanings and are not interchangeable.
Care to elaborate why the change cannot be made in this specific case?
assert(expr) means a precondition failure or an internal error, depending on expr. perror/abort means... perror/abort. If the problem you are trying to fix is that assert() does not give enough information about the bug - and I haven't seen this particular problem reported as a defect - the proper way to fix it is to define an user-overrideable callback.