This commit is contained in:
blueloveTH 2023-04-14 20:48:33 +08:00
parent 8bb3cefb34
commit 98b7a4506c
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@
namespace pkpy{ namespace pkpy{
inline PyObject* VM::_run_top_frame(bool force_no_pop){ inline PyObject* VM::_run_top_frame(){
FrameId frame = top_frame(); FrameId frame = top_frame();
const int base_id = frame.index; const int base_id = frame.index;
bool need_raise = false; bool need_raise = false;
@ -545,7 +545,7 @@ __NEXT_STEP:;
/**********************************************************************/ /**********************************************************************/
__PY_SIMPLE_RETURN: __PY_SIMPLE_RETURN:
if(frame.index == base_id){ // [ frameBase<- ] if(frame.index == base_id){ // [ frameBase<- ]
if(!force_no_pop) callstack.pop(); callstack.pop();
return __ret; return __ret;
}else{ }else{
callstack.pop(); callstack.pop();

View File

@ -349,7 +349,7 @@ public:
template<int ARGC> template<int ARGC>
void bind_func(PyObject*, Str, NativeFuncRaw); void bind_func(PyObject*, Str, NativeFuncRaw);
void _error(Exception); void _error(Exception);
PyObject* _run_top_frame(bool force_no_pop=false); PyObject* _run_top_frame();
void post_init(); void post_init();
}; };