summaryrefslogtreecommitdiff
path: root/py/emitglue.c
diff options
context:
space:
mode:
authorIhor Nehrutsa <Ihor.Nehrutsa@gmail.com>2023-09-26 11:40:17 +0300
committerDamien George <damien@micropython.org>2023-09-29 13:04:38 +1000
commitd83c1a43d4d31100f81bcd565236235efa9d1b90 (patch)
tree71a1d34c1838cf93603e2a8cbb83c0f1e48bea24 /py/emitglue.c
parent2fcd28f7138ed0573da80305bec825ec38fcb013 (diff)
py: Change ifdef DEBUG_PRINT to if DEBUG_PRINT.
Signed-off-by: Ihor Nehrutsa <Ihor.Nehrutsa@gmail.com>
Diffstat (limited to 'py/emitglue.c')
-rw-r--r--py/emitglue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/emitglue.c b/py/emitglue.c
index 95be7f661..6ec6d6b88 100644
--- a/py/emitglue.c
+++ b/py/emitglue.c
@@ -87,7 +87,7 @@ void mp_emit_glue_assign_bytecode(mp_raw_code_t *rc, const byte *code,
mp_prof_extract_prelude(code, prelude);
#endif
- #ifdef DEBUG_PRINT
+ #if DEBUG_PRINT
#if !(MICROPY_PERSISTENT_CODE_SAVE || MICROPY_DEBUG_PRINTERS)
const size_t len = 0;
#endif
@@ -149,7 +149,7 @@ void mp_emit_glue_assign_native(mp_raw_code_t *rc, mp_raw_code_kind_t kind, void
rc->n_pos_args = n_pos_args;
rc->type_sig = type_sig;
- #ifdef DEBUG_PRINT
+ #if 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) {