aboutsummaryrefslogtreecommitdiff
path: root/py/emitglue.c
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.c
parentced340d739e84737dd5c8e6b4ab9af2ea44e29e7 (diff)
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.c')
-rw-r--r--py/emitglue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/emitglue.c b/py/emitglue.c
index c073258f0..483a47025 100644
--- a/py/emitglue.c
+++ b/py/emitglue.c
@@ -88,7 +88,7 @@ void mp_emit_glue_assign_bytecode(mp_raw_code_t *rc, const byte *code,
#endif
}
-#if MICROPY_EMIT_NATIVE || MICROPY_EMIT_INLINE_ASM
+#if MICROPY_EMIT_MACHINE_CODE
void mp_emit_glue_assign_native(mp_raw_code_t *rc, mp_raw_code_kind_t kind, void *fun_data, mp_uint_t fun_len, const mp_uint_t *const_table,
#if MICROPY_PERSISTENT_CODE_SAVE
uint16_t prelude_offset,