mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-22 20:40:18 +00:00
up
This commit is contained in:
parent
8bb3cefb34
commit
98b7a4506c
@ -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();
|
||||||
|
2
src/vm.h
2
src/vm.h
@ -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();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user