mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
some fix
This commit is contained in:
parent
cff541b94b
commit
b20246b172
@ -100,8 +100,10 @@ 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 self);
|
||||||
void py_setupvalue(py_Ref self, const py_Ref val);
|
void py_setupvalue(py_Ref self, const py_Ref val);
|
||||||
|
|
||||||
// int py_getattr(const py_Ref self, py_Name name, py_Ref out);
|
/// Gets the attribute of the object. Push the result onto the stack.
|
||||||
// int py_setattr(py_Ref self, py_Name name, const py_Ref val);
|
int py_getattr(const py_Ref self, py_Name name);
|
||||||
|
/// Sets the attribute of the object.
|
||||||
|
int py_setattr(py_Ref self, py_Name name, const py_Ref val);
|
||||||
|
|
||||||
/// Copies src to dst.
|
/// Copies src to dst.
|
||||||
void py_copyref(const py_Ref src, py_Ref dst);
|
void py_copyref(const py_Ref src, py_Ref dst);
|
||||||
@ -131,7 +133,9 @@ void py_poptmp(int n);
|
|||||||
/************* Modules *************/
|
/************* Modules *************/
|
||||||
py_Ref py_newmodule(const char* name, const char* package);
|
py_Ref py_newmodule(const char* name, const char* package);
|
||||||
py_Ref py_getmodule(const char* name);
|
py_Ref py_getmodule(const char* name);
|
||||||
void py_import(const char* name, py_Ref out);
|
|
||||||
|
/// Import a module. Push the result onto the stack.
|
||||||
|
int py_import(const char* name);
|
||||||
|
|
||||||
/************* Errors *************/
|
/************* Errors *************/
|
||||||
py_Error* py_getlasterror();
|
py_Error* py_getlasterror();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user