Share via


_get_terminate

傳回應由 terminate 呼叫的終止常式。

語法

terminate_function _get_terminate( void );

傳回值

傳回 所 set_terminate 註冊之函式的指標。 如果未設定任何函式,則傳回值可用來還原預設行為;這個值可能是 NULL

備註

根據預設,此函式的全域狀態會限定于應用程式。 若要變更此行為,請參閱 CRT 中的全域狀態。

需求

常式 必要的標頭
_get_terminate <eh.h>

如需相容性詳細資訊,請參閱相容性

另請參閱

例外狀況處理常式
abort
set_unexpected
terminate
unexpected