| 10409 | } |
| 10410 | |
| 10411 | FatalConditionHandler::FatalConditionHandler() { |
| 10412 | isSet = true; |
| 10413 | // 32k seems enough for Catch to handle stack overflow, |
| 10414 | // but the value was found experimentally, so there is no strong guarantee |
| 10415 | guaranteeSize = 32 * 1024; |
| 10416 | exceptionHandlerHandle = nullptr; |
| 10417 | // Register as first handler in current chain |
| 10418 | exceptionHandlerHandle = AddVectoredExceptionHandler(1, handleVectoredException); |
| 10419 | // Pass in guarantee size to be filled |
| 10420 | SetThreadStackGuarantee(&guaranteeSize); |
| 10421 | } |
| 10422 | |
| 10423 | void FatalConditionHandler::reset() { |
| 10424 | if (isSet) { |