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.
This commit is contained in:
@@ -410,13 +410,13 @@ class RawCode(object):
|
||||
print(' .fun_data_len = %u,' % len(self.bytecode))
|
||||
print(' .n_obj = %u,' % len(self.objs))
|
||||
print(' .n_raw_code = %u,' % len(self.raw_codes))
|
||||
print(' #if MICROPY_EMIT_NATIVE || MICROPY_EMIT_INLINE_ASM')
|
||||
print(' #if MICROPY_EMIT_MACHINE_CODE')
|
||||
print(' .prelude_offset = %u,' % self.prelude_offset)
|
||||
print(' .n_qstr = %u,' % len(qstr_links))
|
||||
print(' .qstr_link = NULL,') # TODO
|
||||
print(' #endif')
|
||||
print(' #endif')
|
||||
print(' #if MICROPY_EMIT_NATIVE || MICROPY_EMIT_INLINE_ASM')
|
||||
print(' #if MICROPY_EMIT_MACHINE_CODE')
|
||||
print(' .type_sig = %u,' % type_sig)
|
||||
print(' #endif')
|
||||
print('};')
|
||||
|
||||
Reference in New Issue
Block a user