summaryrefslogtreecommitdiffstatshomepage
path: root/py
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-04-04 15:35:44 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-04-04 15:37:19 +0300
commit069654f2be1ae370cf32a4e711f252a74326cc56 (patch)
tree45053df3067f304a67fee97c45e12d24ad5a5821 /py
parentcee888255bc0a38a61f2816dba863828df74eb13 (diff)
downloadmicropython-069654f2be1ae370cf32a4e711f252a74326cc56.tar.gz
micropython-069654f2be1ae370cf32a4e711f252a74326cc56.zip
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.
Diffstat (limited to 'py')
-rw-r--r--py/obj.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/obj.h b/py/obj.h
index 6959821cf5..8286ba447b 100644
--- a/py/obj.h
+++ b/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 {