diff options
author | Damien George <damien.p.george@gmail.com> | 2018-06-18 13:40:53 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-06-18 13:40:53 +1000 |
commit | c00ee200accb0f79fc2a7829ebe4567258ed40c0 (patch) | |
tree | 4cee06ae111ecd9ecc2b00a9ecf9ff3dd6385dcf /py/objarray.h | |
parent | ca2b1d6b36b11706b537eba90144469ba28561d2 (diff) |
py/objarray: Replace 0x80 with new MP_OBJ_ARRAY_TYPECODE_FLAG_RW macro.
Diffstat (limited to 'py/objarray.h')
-rw-r--r-- | py/objarray.h | 3 |
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; |