From 2581cfd1217bb2787c9e99cd869d3352f7cb2760 Mon Sep 17 00:00:00 2001 From: Brad King <brad.king@kitware.com> Date: Thu, 14 Nov 2019 09:43:26 -0500 Subject: [PATCH] SystemTools: Update EnableMSVCDebugHook to simulate "Retry" Update our report handler to pretend that the user pressed "Retry". This will continue with what would have happened if there were no debug hook, such as actually abort()ing the process. --- SystemTools.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SystemTools.cxx b/SystemTools.cxx index dcf05daa..39873e63 100644 --- a/SystemTools.cxx +++ b/SystemTools.cxx @@ -4666,8 +4666,12 @@ void SystemTools::ClassFinalize() # include <stdlib.h> namespace KWSYS_NAMESPACE { -static int SystemToolsDebugReport(int, char* message, int*) +static int SystemToolsDebugReport(int, char* message, int* ret) { + if (ret) { + // Pretend user clicked on Retry button in popup. + *ret = 1; + } fprintf(stderr, "%s", message); fflush(stderr); return 1; // no further reporting required -- GitLab