diff options
| author | Damien George <damien@micropython.org> | 2022-08-23 13:09:57 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-08-23 13:09:57 +1000 |
| commit | 3d65101a8a55550bdbaa4df4e216edba238fa299 (patch) | |
| tree | 0ad14ee94b939f5c3840aa2e662a0c8c58f75b30 /py/obj.h | |
| parent | 7c8ec85fa34279950e44072b22ac26fe41b91886 (diff) | |
py: Clean up formatting of union definitions.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/obj.h')
| -rw-r--r-- | py/obj.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -283,9 +283,11 @@ static inline bool mp_obj_is_obj(mp_const_obj_t o) { #define MP_OBJ_FROM_PTR(p) ((mp_obj_t)((uintptr_t)(p))) // rom object storage needs special handling to widen 32-bit pointer to 64-bits -typedef union _mp_rom_obj_t { uint64_t u64; - struct { const void *lo, *hi; - } u32; +typedef union _mp_rom_obj_t { + uint64_t u64; + struct { + const void *lo, *hi; + } u32; } mp_rom_obj_t; #define MP_ROM_INT(i) {MP_OBJ_NEW_SMALL_INT(i)} #define MP_ROM_QSTR(q) {MP_OBJ_NEW_QSTR(q)} |
