summaryrefslogtreecommitdiff
path: root/py/asmarm.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2018-09-16 13:41:30 +0300
committerDamien George <damien.p.george@gmail.com>2018-12-20 17:40:48 +1100
commita261d8b615298a7ade5c2aebf50e97d089c56667 (patch)
treead3ace3e3e0a53203c9490028139e8cab828704c /py/asmarm.c
parent39eef270831323b77445e0458c9357d38e23658a (diff)
py/objarray: Introduce "memview_offset" alias for "free" field of object
Both mp_type_array and mp_type_memoryview use the same object structure, mp_obj_array_t, but for the case of memoryview, some fields, e.g. "free", have different meaning. As the "free" field is also a bitfield, assume that (anonymous) union can't be used here (for the concerns of possible compatibility issues with wide array of toolchains), and just add a field alias using a #define. As it's a define, it should be a selective identifier, so use verbose "memview_offset" to avoid any clashes.
Diffstat (limited to 'py/asmarm.c')
0 files changed, 0 insertions, 0 deletions