Calls terminate or function you specify using set_unexpected.
void unexpected( void );
Routine | Required Header | Compatibility |
unexpected | <eh.h> | ANSI, Win 95, Win NT |
For additional compatibility information, see Compatibility in the Introduction.
Libraries
LIBC.LIB | Single thread static library, retail version |
LIBCMT.LIB | Multithread static library, retail version |
MSVCRT.LIB | Import library for MSVCRT.DLL, retail version |
Return Value
None
Remarks
The unexpected routine is not used with the current implemenation of C++ exception handling. unexpected calls terminate by default. You can change this default behavior by writing a custom termination function and calling set_unexpected with the name of your function as its argument. unexpected calls the last function given as an argument to set_unexpected.
See Also abort, _set_se_translator, set_terminate, set_unexpected, terminate