| 7173 | } |
| 7174 | |
| 7175 | FatalConditionHandler::FatalConditionHandler() { |
| 7176 | isSet = true; |
| 7177 | // 32k seems enough for Catch to handle stack overflow, |
| 7178 | // but the value was found experimentally, so there is no strong guarantee |
| 7179 | guaranteeSize = 32 * 1024; |
| 7180 | exceptionHandlerHandle = nullptr; |
| 7181 | // Register as first handler in current chain |
| 7182 | exceptionHandlerHandle = AddVectoredExceptionHandler(1, handleVectoredException); |
| 7183 | // Pass in guarantee size to be filled |
| 7184 | SetThreadStackGuarantee(&guaranteeSize); |
| 7185 | } |
| 7186 | |
| 7187 | void FatalConditionHandler::reset() { |
| 7188 | if (isSet) { |