aboutsummaryrefslogtreecommitdiff
path: root/py/asmbase.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/asmbase.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/asmbase.c')
-rw-r--r--py/asmbase.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/asmbase.c b/py/asmbase.c
index 4c84c3b25..ab861da15 100644
--- a/py/asmbase.c
+++ b/py/asmbase.c
@@ -31,7 +31,7 @@
#include "py/misc.h"
#include "py/asmbase.h"
-#if MICROPY_EMIT_NATIVE || MICROPY_EMIT_INLINE_ASM
+#if MICROPY_EMIT_MACHINE_CODE
void mp_asm_base_init(mp_asm_base_t *as, size_t max_num_labels) {
as->max_num_labels = max_num_labels;
@@ -99,4 +99,4 @@ void mp_asm_base_data(mp_asm_base_t* as, unsigned int bytesize, uintptr_t val) {
}
}
-#endif // MICROPY_EMIT_NATIVE || MICROPY_EMIT_INLINE_ASM
+#endif // MICROPY_EMIT_MACHINE_CODE