py/obj.h: Add comment why mp_fun_kw_t takes non-const mp_map_t*.
mp_fun_kw_t takes mp_map_t* (and not const mp_map_t*) to ease passing this arg to mp_map_lookup(), which may modify its arg, depending on flags.
This commit is contained in:
parent
cee888255b
commit
069654f2be
2
py/obj.h
2
py/obj.h
|
@ -398,6 +398,8 @@ typedef mp_obj_t (*mp_fun_1_t)(mp_obj_t);
|
|||
typedef mp_obj_t (*mp_fun_2_t)(mp_obj_t, mp_obj_t);
|
||||
typedef mp_obj_t (*mp_fun_3_t)(mp_obj_t, mp_obj_t, mp_obj_t);
|
||||
typedef mp_obj_t (*mp_fun_var_t)(size_t n, const mp_obj_t *);
|
||||
// mp_fun_kw_t takes mp_map_t* (and not const mp_map_t*) to ease passing
|
||||
// this arg to mp_map_lookup().
|
||||
typedef mp_obj_t (*mp_fun_kw_t)(size_t n, const mp_obj_t *, mp_map_t *);
|
||||
|
||||
typedef enum {
|
||||
|
|
Loading…
Reference in New Issue