| 7343 | } |
| 7344 | |
| 7345 | FatalConditionHandler::FatalConditionHandler() { |
| 7346 | isSet = true; |
| 7347 | // 32k seems enough for Catch to handle stack overflow, |
| 7348 | // but the value was found experimentally, so there is no strong guarantee |
| 7349 | guaranteeSize = 32 * 1024; |
| 7350 | exceptionHandlerHandle = nullptr; |
| 7351 | // Register as first handler in current chain |
| 7352 | exceptionHandlerHandle = AddVectoredExceptionHandler(1, handleVectoredException); |
| 7353 | // Pass in guarantee size to be filled |
| 7354 | SetThreadStackGuarantee(&guaranteeSize); |
| 7355 | } |
| 7356 | |
| 7357 | void FatalConditionHandler::reset() { |
| 7358 | if (isSet) { |