From b1e1720f9ddcd8cf19429f324c107c0d3e7e4d2d Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Thu, 28 Jul 2022 11:54:48 -0400 Subject: [PATCH] Don't break in ce debugger when Fail is ignored (ie: unspec variants) --- IDEHelper/Compiler/CeMachine.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/IDEHelper/Compiler/CeMachine.cpp b/IDEHelper/Compiler/CeMachine.cpp index 68ac3b7b..96e094e3 100644 --- a/IDEHelper/Compiler/CeMachine.cpp +++ b/IDEHelper/Compiler/CeMachine.cpp @@ -5616,9 +5616,8 @@ bool CeContext::Execute(CeFunction* startFunction, uint8* startStackPtr, uint8* auto _Fail = [&](const StringImpl& error) { - Fail(_GetCurFrame(), error); - - if (mCeMachine->mDebugger != NULL) + auto bfError = Fail(_GetCurFrame(), error); + if ((bfError != NULL) && (mCeMachine->mDebugger != NULL)) { mCeMachine->mDebugger->OutputRawMessage(StrFormat("error %s", error.c_str())); _DbgPause();