|
MSTL 1.4.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
异常终止处理的接口 更多...
类型定义 | |
| using | terminate_handler = void(*)() |
| 终止处理函数指针类型 | |
函数 | |
| void MSTL_API | set_terminate (terminate_handler handler) noexcept |
| 设置终止处理函数 | |
| MSTL_NORETURN void MSTL_API | terminate () |
| 调用当前终止处理函数 | |
| MSTL_NORETURN void MSTL_API | abort () |
| 强制终止进程 | |
异常终止处理的接口
| using terminate_handler = void(*)() |
| MSTL_NORETURN void MSTL_API abort | ( | ) |
|
noexcept |
设置终止处理函数
| handler | 新的终止处理函数指针 |
设置当前进程的终止处理函数,当程序因未捕获的异常而终止时,将调用设置的处理函数。
| MSTL_NORETURN void MSTL_API terminate | ( | ) |
调用当前终止处理函数
调用当前设置的终止处理函数。