#include <stdlib.h>
#include <assert.h>
#include "py/runtime.h"
#include "py/bc.h"
#include "py/objgenerator.h"
#include "py/objfun.h"
Go to the source code of this file.
|
STATIC mp_obj_t | gen_wrap_call (mp_obj_t self_in, size_t n_args, size_t n_kw, const mp_obj_t *args) |
|
mp_obj_t | mp_obj_new_gen_wrap (mp_obj_t fun) |
|
STATIC void | gen_instance_print (const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) |
|
mp_vm_return_kind_t | mp_obj_gen_resume (mp_obj_t self_in, mp_obj_t send_value, mp_obj_t throw_value, mp_obj_t *ret_val) |
|
STATIC mp_obj_t | gen_resume_and_raise (mp_obj_t self_in, mp_obj_t send_value, mp_obj_t throw_value) |
|
STATIC mp_obj_t | gen_instance_iternext (mp_obj_t self_in) |
|
STATIC mp_obj_t | gen_instance_send (mp_obj_t self_in, mp_obj_t send_value) |
|
STATIC | MP_DEFINE_CONST_FUN_OBJ_2 (gen_instance_send_obj, gen_instance_send) |
|
STATIC mp_obj_t | gen_instance_close (mp_obj_t self_in) |
|
STATIC mp_obj_t | gen_instance_throw (size_t n_args, const mp_obj_t *args) |
|
STATIC | MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (gen_instance_throw_obj, 2, 4, gen_instance_throw) |
|
STATIC | MP_DEFINE_CONST_FUN_OBJ_1 (gen_instance_close_obj, gen_instance_close) |
|
STATIC | MP_DEFINE_CONST_DICT (gen_instance_locals_dict, gen_instance_locals_dict_table) |
|
◆ mp_obj_gen_instance_t
◆ mp_obj_gen_wrap_t
◆ gen_instance_close()
◆ gen_instance_iternext()
◆ gen_instance_print()
◆ gen_instance_send()
◆ gen_instance_throw()
◆ gen_resume_and_raise()
◆ gen_wrap_call()
◆ MP_DEFINE_CONST_DICT()
◆ MP_DEFINE_CONST_FUN_OBJ_1()
◆ MP_DEFINE_CONST_FUN_OBJ_2()
◆ MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN()
◆ mp_obj_gen_resume()
◆ mp_obj_new_gen_wrap()
◆ gen_instance_locals_dict_table
◆ mp_type_gen_instance
Initial value:= {
.
name = MP_QSTR_generator,
}
mp_obj_t mp_generic_unary_op(mp_unary_op_t op, mp_obj_t o_in)
STATIC mp_obj_t gen_instance_iternext(mp_obj_t self_in)
STATIC void gen_instance_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind)
const mp_obj_type_t mp_type_type
mp_obj_t mp_identity_getiter(mp_obj_t self, mp_obj_iter_buf_t *iter_buf)
Definition at line 233 of file objgenerator.c.
◆ mp_type_gen_wrap
Initial value:= {
.
name = MP_QSTR_generator,
}
mp_obj_t mp_generic_unary_op(mp_unary_op_t op, mp_obj_t o_in)
STATIC mp_obj_t gen_wrap_call(mp_obj_t self_in, size_t n_args, size_t n_kw, const mp_obj_t *args)
const mp_obj_type_t mp_type_type
Definition at line 71 of file objgenerator.c.