26 #ifndef MICROPY_INCLUDED_PY_OBJTUPLE_H 27 #define MICROPY_INCLUDED_PY_OBJTUPLE_H 51 #define MP_DEFINE_ATTRTUPLE(tuple_obj_name, fields, nitems, ...) \ 52 const mp_rom_obj_tuple_t tuple_obj_name = { \ 53 .base = {&mp_type_attrtuple}, \ 55 .items = { __VA_ARGS__ , MP_ROM_PTR((void*)fields) } \ 58 #if MICROPY_PY_COLLECTIONS 64 #endif // MICROPY_INCLUDED_PY_OBJTUPLE_H mp_obj_t mp_obj_tuple_subscr(mp_obj_t base, mp_obj_t index, mp_obj_t value)
struct _mp_rom_obj_tuple_t mp_rom_obj_tuple_t
void mp_obj_tuple_print(const mp_print_t *print, mp_obj_t o_in, mp_print_kind_t kind)
mp_obj_t mp_obj_new_attrtuple(const qstr *fields, size_t n, const mp_obj_t *items)
mp_obj_t mp_obj_tuple_getiter(mp_obj_t o_in, mp_obj_iter_buf_t *iter_buf)
mp_obj_t mp_obj_tuple_binary_op(mp_binary_op_t op, mp_obj_t lhs, mp_obj_t rhs)
mp_const_obj_t mp_rom_obj_t
const mp_obj_type_t mp_type_attrtuple
mp_obj_t mp_obj_tuple_unary_op(mp_unary_op_t op, mp_obj_t self_in)
struct _mp_obj_tuple_t mp_obj_tuple_t