| 10673 | } |
| 10674 | |
| 10675 | FatalConditionHandler::FatalConditionHandler() { |
| 10676 | isSet = true; |
| 10677 | // 32k seems enough for Catch to handle stack overflow, |
| 10678 | // but the value was found experimentally, so there is no strong guarantee |
| 10679 | guaranteeSize = 32 * 1024; |
| 10680 | exceptionHandlerHandle = nullptr; |
| 10681 | // Register as first handler in current chain |
| 10682 | exceptionHandlerHandle = AddVectoredExceptionHandler(1, handleVectoredException); |
| 10683 | // Pass in guarantee size to be filled |
| 10684 | SetThreadStackGuarantee(&guaranteeSize); |
| 10685 | } |
| 10686 | |
| 10687 | void FatalConditionHandler::reset() { |
| 10688 | if (isSet) { |