summaryrefslogtreecommitdiffstatshomepage
path: root/py/objtuple.h
diff options
context:
space:
mode:
Diffstat (limited to 'py/objtuple.h')
-rw-r--r--py/objtuple.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/py/objtuple.h b/py/objtuple.h
new file mode 100644
index 0000000000..9c672fe3f5
--- /dev/null
+++ b/py/objtuple.h
@@ -0,0 +1,7 @@
+typedef struct _mp_obj_tuple_t {
+ mp_obj_base_t base;
+ machine_uint_t len;
+ mp_obj_t items[];
+} mp_obj_tuple_t;
+
+void tuple_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj_t o_in);