py/obj: Convert make_new into a mp_obj_type_t slot.
Instead of being an explicit field, it's now a slot like all the other methods. This is a marginal code size improvement because most types have a make_new (100/138 on PYBV11), however it improves consistency in how types are declared, removing the special case for make_new. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
committed by
Damien George
parent
6da41b5900
commit
94beeabd2e
@@ -36,5 +36,6 @@ typedef struct _mp_obj_list_t {
|
||||
} mp_obj_list_t;
|
||||
|
||||
void mp_obj_list_init(mp_obj_list_t *o, size_t n);
|
||||
mp_obj_t mp_obj_list_make_new(const mp_obj_type_t *type_in, size_t n_args, size_t n_kw, const mp_obj_t *args);
|
||||
|
||||
#endif // MICROPY_INCLUDED_PY_OBJLIST_H
|
||||
|
||||
Reference in New Issue
Block a user