summaryrefslogtreecommitdiff
path: root/py/emitglue.c
diff options
context:
space:
mode:
authormicroDev <70126934+microDev1@users.noreply.github.com>2021-03-15 19:27:36 +0530
committermicroDev <70126934+microDev1@users.noreply.github.com>2021-03-15 19:27:36 +0530
commita52eb88031620a81521b937f2a0651dbac2bb350 (patch)
tree017cbf8f686b252241182ef61ce48e8457aa1577 /py/emitglue.c
parent090b6ba42fcdfbb16844f77892087f91aa6ea201 (diff)
run code formatting script
Diffstat (limited to 'py/emitglue.c')
-rw-r--r--py/emitglue.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/py/emitglue.c b/py/emitglue.c
index 7635a73d6..d0286803e 100644
--- a/py/emitglue.c
+++ b/py/emitglue.c
@@ -75,14 +75,14 @@ void mp_emit_glue_assign_bytecode(mp_raw_code_t *rc, const byte *code,
rc->data.u_byte.n_raw_code = n_raw_code;
#endif
-#ifdef DEBUG_PRINT
+ #ifdef DEBUG_PRINT
DEBUG_printf("assign byte code: code=%p len=" UINT_FMT " flags=%x\n", code, len, (uint)scope_flags);
-#endif
-#if MICROPY_DEBUG_PRINTERS
+ #endif
+ #if MICROPY_DEBUG_PRINTERS
if (mp_verbose_flag >= 2) {
mp_bytecode_print(rc, code, len, const_table);
}
-#endif
+ #endif
}
#if MICROPY_EMIT_NATIVE || MICROPY_EMIT_INLINE_ASM
@@ -95,24 +95,24 @@ void mp_emit_glue_assign_native(mp_raw_code_t *rc, mp_raw_code_kind_t kind, void
rc->data.u_native.const_table = const_table;
rc->data.u_native.type_sig = type_sig;
-#ifdef DEBUG_PRINT
+ #ifdef DEBUG_PRINT
DEBUG_printf("assign native: kind=%d fun=%p len=" UINT_FMT " n_pos_args=" UINT_FMT " flags=%x\n", kind, fun_data, fun_len, n_pos_args, (uint)scope_flags);
for (mp_uint_t i = 0; i < fun_len; i++) {
if (i > 0 && i % 16 == 0) {
DEBUG_printf("\n");
}
- DEBUG_printf(" %02x", ((byte*)fun_data)[i]);
+ DEBUG_printf(" %02x", ((byte *)fun_data)[i]);
}
DEBUG_printf("\n");
-#ifdef WRITE_CODE
+ #ifdef WRITE_CODE
FILE *fp_write_code = fopen("out-code", "wb");
fwrite(fun_data, fun_len, 1, fp_write_code);
fclose(fp_write_code);
-#endif
-#else
+ #endif
+ #else
(void)fun_len;
-#endif
+ #endif
}
#endif