mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
...
This commit is contained in:
parent
56763e05f9
commit
39947e8f15
@ -263,6 +263,11 @@ py_StackRef py_pushtmp();
|
|||||||
/// If returns true: [self] -> [unbound, self]
|
/// If returns true: [self] -> [unbound, self]
|
||||||
/// If returns false: [self] -> [self] (no change)
|
/// If returns false: [self] -> [self] (no change)
|
||||||
bool py_pushmethod(py_Name name);
|
bool py_pushmethod(py_Name name);
|
||||||
|
/// A stack operation that calls a function.
|
||||||
|
/// It assumes `argc + kwargc` arguments are already pushed to the stack.
|
||||||
|
/// The result will be set to `py_retval()`.
|
||||||
|
/// The stack size will be reduced by `argc + kwargc`.
|
||||||
|
bool py_vectorcall(uint16_t argc, uint16_t kwargc) PY_RAISE;
|
||||||
|
|
||||||
/************* Modules *************/
|
/************* Modules *************/
|
||||||
py_TmpRef py_newmodule(const char* path);
|
py_TmpRef py_newmodule(const char* path);
|
||||||
@ -328,11 +333,6 @@ bool py_iter(py_Ref) PY_RAISE;
|
|||||||
int py_next(py_Ref) PY_RAISE;
|
int py_next(py_Ref) PY_RAISE;
|
||||||
/// Python equivalent to `lhs is rhs`.
|
/// Python equivalent to `lhs is rhs`.
|
||||||
bool py_isidentical(py_Ref, py_Ref);
|
bool py_isidentical(py_Ref, py_Ref);
|
||||||
/// A stack operation that calls a function.
|
|
||||||
/// It assumes `argc + kwargc` arguments are already pushed to the stack.
|
|
||||||
/// The result will be set to `py_retval()`.
|
|
||||||
/// The stack size will be reduced by `argc + kwargc`.
|
|
||||||
bool py_vectorcall(uint16_t argc, uint16_t kwargc) PY_RAISE;
|
|
||||||
/// Call a function.
|
/// Call a function.
|
||||||
/// It prepares the stack and then performs a `vectorcall(argc, 0, false)`.
|
/// It prepares the stack and then performs a `vectorcall(argc, 0, false)`.
|
||||||
/// The result will be set to `py_retval()`.
|
/// The result will be set to `py_retval()`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user