Update ceval.cpp

This commit is contained in:
blueloveTH 2024-05-18 21:29:00 +08:00
parent fd8ff0cd84
commit 41aae44f21

View File

@ -113,9 +113,9 @@ __NEXT_FRAME:
Bytecode byte = frame->next_bytecode(); Bytecode byte = frame->next_bytecode();
CEVAL_STEP_CALLBACK(); 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 #if PK_DEBUG_CEVAL_STEP
__log_s_data(); __log_s_data();
#endif #endif
@ -992,8 +992,9 @@ for(;;){
/*****************************************/ /*****************************************/
default: PK_UNREACHABLE(); default: PK_UNREACHABLE();
} }
}} }
/**********************************************************************/ /**********************************************************************/
PK_UNREACHABLE();
}catch(HandledException){ }catch(HandledException){
continue; continue;
}catch(UnhandledException){ }catch(UnhandledException){