| 6302 | } |
| 6303 | |
| 6304 | FatalConditionHandler() { |
| 6305 | isSet = true; |
| 6306 | // 32k seems enough for Catch to handle stack overflow, |
| 6307 | // but the value was found experimentally, so there is no strong guarantee |
| 6308 | guaranteeSize = 32 * 1024; |
| 6309 | exceptionHandlerHandle = CATCH_NULL; |
| 6310 | // Register as first handler in current chain |
| 6311 | exceptionHandlerHandle = AddVectoredExceptionHandler(1, handleVectoredException); |
| 6312 | // Pass in guarantee size to be filled |
| 6313 | SetThreadStackGuarantee(&guaranteeSize); |
| 6314 | } |
| 6315 | |
| 6316 | static void reset() { |
| 6317 | if (isSet) { |