Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 1.43 KB

unexpected-crt.md

File metadata and controls

42 lines (32 loc) · 1.43 KB
description title ms.date api_name api_location api_type topic_type f1_keywords helpviewer_keywords ms.assetid
Learn more about: unexpected (CRT)
unexpected (CRT)
1/14/2021
unexpected
msvcrt.dll
msvcr80.dll
msvcr90.dll
msvcr100.dll
msvcr100_clr0400.dll
msvcr110.dll
msvcr110_clr0400.dll
msvcr120.dll
msvcr120_clr0400.dll
ucrtbase.dll
DLLExport
apiref
EH/unexpected
unexpected function
2f873763-15ad-4556-a924-dcf28f2b52b4

unexpected (CRT)

Calls terminate or the function you specify by using set_unexpected.

Syntax

void unexpected( void );

Remarks

The unexpected routine isn't used with the current implementation of C++ exception handling. unexpected calls terminate by default. You can change this default behavior by writing a custom termination function. Call set_unexpected with the name of your function as its argument. unexpected calls the last function passed to set_unexpected.

Requirements

Routine Required header
unexpected <eh.h>

For more compatibility information, see Compatibility.

See also

Exception handling routines
abort
_set_se_translator
set_terminate
set_unexpected
terminate