diff options
author | Jun Wu <quark@lihdd.net> | 2019-05-06 00:31:11 -0700 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-06-28 13:54:45 +1000 |
commit | b152bbddd132cf3f147a526efebedaf25eba29cd (patch) | |
tree | e08cca35286d293c6e2f9ad5ceac682d81630936 /py/nativeglue.c | |
parent | ced340d739e84737dd5c8e6b4ab9af2ea44e29e7 (diff) | |
download | micropython-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/nativeglue.c')
-rw-r--r-- | py/nativeglue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/nativeglue.c b/py/nativeglue.c index 11d7a283a2..979265a870 100644 --- a/py/nativeglue.c +++ b/py/nativeglue.c @@ -77,7 +77,7 @@ mp_uint_t mp_native_from_obj(mp_obj_t obj, mp_uint_t type) { #endif -#if MICROPY_EMIT_NATIVE || MICROPY_EMIT_INLINE_ASM +#if MICROPY_EMIT_MACHINE_CODE // convert a native value to a MicroPython object based on type mp_obj_t mp_native_to_obj(mp_uint_t val, mp_uint_t type) { |