
14 Nov
2006
14 Nov
'06
10:36 p.m.
Matthew Herrmann wrote:
To remove the e.success(), you'd need to detect whether the stack was being unwound due to an exception or due to a natural return. This is where language support (or compiler-dependent tricks) would be required. Language support exists. There is a function that returns true if the stack is currently being unwound.
It is broken in VC++6 (always returns false), but aside from that I believe it's quite well supported, though little known. Sebastian Redl