From 41aae44f210110522ba355f7652cdf50cbcae351 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sat, 18 May 2024 21:29:00 +0800 Subject: [PATCH] Update ceval.cpp --- src/ceval.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ceval.cpp b/src/ceval.cpp index 758002bd..5a1460ed 100644 --- a/src/ceval.cpp +++ b/src/ceval.cpp @@ -113,9 +113,9 @@ __NEXT_FRAME: Bytecode byte = frame->next_bytecode(); CEVAL_STEP_CALLBACK(); -#define DISPATCH() { byte = frame->next_bytecode(); CEVAL_STEP_CALLBACK(); break;} +#define DISPATCH() { byte = frame->next_bytecode(); CEVAL_STEP_CALLBACK(); goto __NEXT_STEP; } -for(;;){ +__NEXT_STEP:; #if PK_DEBUG_CEVAL_STEP __log_s_data(); #endif @@ -992,8 +992,9 @@ for(;;){ /*****************************************/ default: PK_UNREACHABLE(); } -}} +} /**********************************************************************/ + PK_UNREACHABLE(); }catch(HandledException){ continue; }catch(UnhandledException){