doc: add callback documentation in ExceptionHelper.

- add callback documentation in ExceptionHelper.
- fix other misc documentation issue.
This commit is contained in:
2024-07-30 10:35:41 +08:00
parent 650fcd12ec
commit 19023cb949
6 changed files with 35 additions and 5 deletions

View File

@ -78,6 +78,8 @@ namespace YYCC::ExceptionHelper {
if (!m_IsRegistered) return;
// unregister handler
// reset user callback
m_UserCallback = nullptr;
// restore old handler
SetUnhandledExceptionFilter(m_PrevProcHandler);
m_PrevProcHandler = nullptr;