mirror of
https://github.com/pocketpy/pocketpy
synced 2025-11-17 17:10:18 +00:00
Compare commits
No commits in common. "7d85da5ad3167b6cc360d50d78daa5a9b1fc2f30" and "01f04b2e410b83181d568f8206bd44925fb40449" have entirely different histories.
7d85da5ad3
...
01f04b2e41
@ -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; // this is for get current function without frame
|
py_StackRef curr_decl_based_function;
|
||||||
TraceInfo trace_info;
|
TraceInfo trace_info;
|
||||||
WatchdogInfo watchdog_info;
|
WatchdogInfo watchdog_info;
|
||||||
LineProfiler line_profiler;
|
LineProfiler line_profiler;
|
||||||
|
|||||||
@ -300,7 +300,7 @@ PK_API void* py_newobject(py_OutRef out, py_Type type, int slots, int udsize);
|
|||||||
|
|
||||||
/// Convert an `int` object in python to `int64_t`.
|
/// Convert an `int` object in python to `int64_t`.
|
||||||
PK_API py_i64 py_toint(py_Ref);
|
PK_API py_i64 py_toint(py_Ref);
|
||||||
/// Get the address of the trivial value object.
|
/// Convert a trivial value object in python to `int64_t`.
|
||||||
PK_API void* py_totrivial(py_Ref);
|
PK_API void* py_totrivial(py_Ref);
|
||||||
/// Convert a `float` object in python to `double`.
|
/// Convert a `float` object in python to `double`.
|
||||||
PK_API py_f64 py_tofloat(py_Ref);
|
PK_API py_f64 py_tofloat(py_Ref);
|
||||||
|
|||||||
@ -232,7 +232,6 @@ 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);
|
||||||
if(ok) {
|
if(ok) {
|
||||||
assert(py_retval()->type == tp_nativefunc || py_retval()->type == tp_function);
|
|
||||||
self[0] = *py_retval();
|
self[0] = *py_retval();
|
||||||
self[1] = self_bak;
|
self[1] = self_bak;
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user