aboutsummaryrefslogtreecommitdiff
path: root/py/objlist.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-03-13 14:03:15 +1100
committerDamien George <damien.p.george@gmail.com>2018-03-13 14:03:15 +1100
commite0bc438e4badb8f2d356479a3bee2b9c45fd69ca (patch)
tree08b6c82e77e622992d6bfbdce0e9cfec4fa53790 /py/objlist.h
parent9f811e9096819230905a5eb47812934531005403 (diff)
py/obj.h: Move declaration of mp_obj_list_init to objlist.h.
If this function is used then objlist.h is already included to get the definition of mp_obj_list_t.
Diffstat (limited to 'py/objlist.h')
-rw-r--r--py/objlist.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/objlist.h b/py/objlist.h
index 28b5495a9..a43663db7 100644
--- a/py/objlist.h
+++ b/py/objlist.h
@@ -35,4 +35,6 @@ typedef struct _mp_obj_list_t {
mp_obj_t *items;
} mp_obj_list_t;
+void mp_obj_list_init(mp_obj_list_t *o, size_t n);
+
#endif // MICROPY_INCLUDED_PY_OBJLIST_H