mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
...
This commit is contained in:
parent
f1d4ef5e1c
commit
bc64efe57a
@ -67,7 +67,7 @@ typedef struct VM {
|
|||||||
NameDict compile_time_funcs;
|
NameDict compile_time_funcs;
|
||||||
|
|
||||||
py_StackRef curr_class;
|
py_StackRef curr_class;
|
||||||
py_StackRef curr_decl_based_function;
|
py_StackRef curr_decl_based_function; // this is for get current function without frame
|
||||||
TraceInfo trace_info;
|
TraceInfo trace_info;
|
||||||
WatchdogInfo watchdog_info;
|
WatchdogInfo watchdog_info;
|
||||||
LineProfiler line_profiler;
|
LineProfiler line_profiler;
|
||||||
|
@ -231,6 +231,7 @@ bool pk_loadmethod(py_StackRef self, py_Name name) {
|
|||||||
|
|
||||||
if(ti->getunboundmethod) {
|
if(ti->getunboundmethod) {
|
||||||
bool ok = ti->getunboundmethod(self, name);
|
bool ok = ti->getunboundmethod(self, name);
|
||||||
|
assert(py_retval()->type == tp_nativefunc || py_retval()->type == tp_function);
|
||||||
if(ok) {
|
if(ok) {
|
||||||
self[0] = *py_retval();
|
self[0] = *py_retval();
|
||||||
self[1] = self_bak;
|
self[1] = self_bak;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user