mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
some fix
This commit is contained in:
parent
ac19ece535
commit
97cdfbedaf
@ -133,8 +133,8 @@ void py_setdict(py_Ref self, py_Name name, const py_Ref val);
|
|||||||
py_Ref py_getslot(const py_Ref self, int i);
|
py_Ref py_getslot(const py_Ref self, int i);
|
||||||
void py_setslot(py_Ref self, int i, const py_Ref val);
|
void py_setslot(py_Ref self, int i, const py_Ref val);
|
||||||
|
|
||||||
py_Ref py_getupvalue(py_Ref self);
|
py_Ref py_getupvalue(py_Ref argv);
|
||||||
void py_setupvalue(py_Ref self, const py_Ref val);
|
void py_setupvalue(py_Ref argv, const py_Ref val);
|
||||||
|
|
||||||
/// Gets the attribute of the object.
|
/// Gets the attribute of the object.
|
||||||
bool py_getattr(const py_Ref self, py_Name name, py_Ref out);
|
bool py_getattr(const py_Ref self, py_Name name, py_Ref out);
|
||||||
|
@ -22,9 +22,6 @@ bool py_castfloat(const py_Ref self, double* out){
|
|||||||
case tp_float:
|
case tp_float:
|
||||||
*out = self->_f64;
|
*out = self->_f64;
|
||||||
return true;
|
return true;
|
||||||
case tp_bool:
|
|
||||||
*out = self->extra;
|
|
||||||
return true;
|
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user