summaryrefslogtreecommitdiffstatshomepage
path: root/py/emitglue.h
diff options
context:
space:
mode:
authorJun Wu <quark@lihdd.net>2019-05-06 00:31:11 -0700
committerDamien George <damien.p.george@gmail.com>2019-06-28 13:54:45 +1000
commitb152bbddd132cf3f147a526efebedaf25eba29cd (patch)
treee08cca35286d293c6e2f9ad5ceac682d81630936 /py/emitglue.h
parentced340d739e84737dd5c8e6b4ab9af2ea44e29e7 (diff)
downloadmicropython-b152bbddd132cf3f147a526efebedaf25eba29cd.tar.gz
micropython-b152bbddd132cf3f147a526efebedaf25eba29cd.zip
py: Define EMIT_MACHINE_CODE as EMIT_NATIVE || EMIT_INLINE_ASM.
The combination MICROPY_EMIT_NATIVE || MICROPY_EMIT_INLINE_ASM is used in many places, so define a new macro for it.
Diffstat (limited to 'py/emitglue.h')
-rw-r--r--py/emitglue.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/emitglue.h b/py/emitglue.h
index 058f060186..b67d49ed6d 100644
--- a/py/emitglue.h
+++ b/py/emitglue.h
@@ -63,13 +63,13 @@ typedef struct _mp_raw_code_t {
size_t fun_data_len;
uint16_t n_obj;
uint16_t n_raw_code;
- #if MICROPY_EMIT_NATIVE || MICROPY_EMIT_INLINE_ASM
+ #if MICROPY_EMIT_MACHINE_CODE
uint16_t prelude_offset;
uint16_t n_qstr;
mp_qstr_link_entry_t *qstr_link;
#endif
#endif
- #if MICROPY_EMIT_NATIVE || MICROPY_EMIT_INLINE_ASM
+ #if MICROPY_EMIT_MACHINE_CODE
mp_uint_t type_sig; // for viper, compressed as 2-bit types; ret is MSB, then arg0, arg1, etc
#endif
} mp_raw_code_t;