Просмотр исходного кода

Don't break in ce debugger when Fail is ignored (ie: unspec variants)

Brian Fiete 3 лет назад
Родитель
Сommit
b1e1720f9d
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      IDEHelper/Compiler/CeMachine.cpp

+ 2 - 3
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();