44 size_t n_total =
self->n_closed + n_args + 2 * n_kw;
62 #if MICROPY_ERROR_REPORTING == MICROPY_ERROR_REPORTING_DETAILED 69 for (
size_t i = 0; i < o->
n_closed; i++) {
83 .
name = MP_QSTR_closure,
84 #if MICROPY_ERROR_REPORTING == MICROPY_ERROR_REPORTING_DETAILED
#define m_del(type, ptr, num)
int mp_print_str(const mp_print_t *print, const char *str)
#define MP_OBJ_FROM_PTR(p)
STATIC mp_obj_t closure_call(mp_obj_t self_in, size_t n_args, size_t n_kw, const mp_obj_t *args)
#define m_new_obj_var(obj_type, var_type, var_num)
struct _mp_obj_closure_t mp_obj_closure_t
void mp_obj_print_helper(const mp_print_t *print, mp_obj_t o_in, mp_print_kind_t kind)
const mp_obj_type_t closure_type
mp_obj_t mp_obj_new_closure(mp_obj_t fun, size_t n_closed_over, const mp_obj_t *closed)
const mp_obj_type_t mp_type_type
STATIC void closure_print(const mp_print_t *print, mp_obj_t o_in, mp_print_kind_t kind)
int mp_printf(const mp_print_t *print, const char *fmt,...)
mp_obj_t mp_call_function_n_kw(mp_obj_t fun_in, size_t n_args, size_t n_kw, const mp_obj_t *args)
void * memcpy(void *dst, const void *src, size_t n)