aboutsummaryrefslogtreecommitdiff
path: root/py/objarray.h
diff options
context:
space:
mode:
Diffstat (limited to 'py/objarray.h')
-rw-r--r--py/objarray.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/py/objarray.h b/py/objarray.h
index 038966845..0dad70571 100644
--- a/py/objarray.h
+++ b/py/objarray.h
@@ -29,6 +29,9 @@
#include "py/obj.h"
+// Used only for memoryview types, set in "typecode" to indicate a writable memoryview
+#define MP_OBJ_ARRAY_TYPECODE_FLAG_RW (0x80)
+
typedef struct _mp_obj_array_t {
mp_obj_base_t base;
size_t typecode : 8;