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/mpconfig.h | |
| parent | ced340d739e84737dd5c8e6b4ab9af2ea44e29e7 (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/mpconfig.h')
| -rw-r--r-- | py/mpconfig.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index 4172e175b..a111b27ae 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -329,6 +329,9 @@ // Convenience definition for whether any inline assembler emitter is enabled #define MICROPY_EMIT_INLINE_ASM (MICROPY_EMIT_INLINE_THUMB || MICROPY_EMIT_INLINE_XTENSA) +// Convenience definition for whether any native or inline assembler emitter is enabled +#define MICROPY_EMIT_MACHINE_CODE (MICROPY_EMIT_NATIVE || MICROPY_EMIT_INLINE_ASM) + /*****************************************************************************/ /* Compiler configuration */ |
