Fix CATCH_BREAK_INTO_DEBUGGER that by default surrounds in a lambda

* This is a lambda in upstream catch to avoid some warning, but that means that
  when the debugbreak happens it's in the wrong stack frame (though at least on
  the right line). Fortunately we can override it with a useful definition.
This commit is contained in:
baldurk
2021-03-05 12:38:44 +00:00
parent 244cfd0fc1
commit 8b4e25b421
+7
View File
@@ -29,6 +29,13 @@
#define CATCH_CONFIG_FORCE_FALLBACK_STRINGIFIER
#define CATCH_CONFIG_INLINE_DEBUG_BREAK
// define the debugbreak to not be in a lambda, so that we get the right stack frame!
#define CATCH_BREAK_INTO_DEBUGGER() \
if(Catch::isDebuggerActive()) \
{ \
CATCH_TRAP(); \
}
#include "api/replay/rdcstr.h"
#include "api/replay/stringise.h"