mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 19:40:18 +00:00
some fix
This commit is contained in:
parent
57563d4e40
commit
31fa85f22e
@ -105,8 +105,8 @@ int py_getattr(const py_Ref self, py_Name name, py_Ref out);
|
|||||||
/// Sets the attribute of the object.
|
/// Sets the attribute of the object.
|
||||||
int py_setattr(py_Ref self, py_Name name, const py_Ref val);
|
int py_setattr(py_Ref self, py_Name name, const py_Ref val);
|
||||||
|
|
||||||
/// Copies src's value to dst, equivalent to `*dst = *src`.
|
/// Equivalent to `*dst = *src`.
|
||||||
void py_assign(const py_Ref src, py_Ref dst);
|
void py_assign(py_Ref dst, const py_Ref src);
|
||||||
|
|
||||||
/************* Stack Operations *************/
|
/************* Stack Operations *************/
|
||||||
py_Ref py_gettop();
|
py_Ref py_gettop();
|
||||||
|
@ -27,7 +27,7 @@ void py_setslot(py_Ref self, int i, const py_Ref val){
|
|||||||
PyObject__slots(self->_obj)[i] = *val;
|
PyObject__slots(self->_obj)[i] = *val;
|
||||||
}
|
}
|
||||||
|
|
||||||
void py_assign(const py_Ref src, py_Ref dst){
|
void py_assign(py_Ref dst, const py_Ref src){
|
||||||
*dst = *src;
|
*dst = *src;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user