mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 11:10: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:
@@ -63,7 +63,7 @@ STATIC mp_obj_t exception_call(mp_obj_t self_in, uint n_args, uint n_kw, const m
|
||||
|
||||
const mp_obj_type_t exception_type = {
|
||||
{ &mp_const_type },
|
||||
"exception",
|
||||
.name = MP_QSTR_, // TODO proper exception names
|
||||
.print = exception_print,
|
||||
.call = exception_call,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user