mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01:00
Change mp_obj_type_t.name from const char * to qstr.
Ultimately all static strings should be qstr. This entry in the type structure is only used for printing error messages (to tell the type of the bad argument), and printing objects that don't supply a .print method.
This commit is contained in:
@@ -26,7 +26,7 @@ void mp_obj_cell_set(mp_obj_t self_in, mp_obj_t obj) {
|
||||
|
||||
const mp_obj_type_t cell_type = {
|
||||
{ &mp_const_type },
|
||||
"cell",
|
||||
.name = MP_QSTR_, // should never need to print cell type
|
||||
};
|
||||
|
||||
mp_obj_t mp_obj_new_cell(mp_obj_t obj) {
|
||||
|
||||
Reference in New Issue
Block a user