mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 20:20:14 +01:00
py/emitglue: Include fun_data_len in mp_raw_code_t only when saving.
Reduces the size of mp_raw_code_t in the case when MICROPY_DEBUG_PRINTERS is enabled. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -76,6 +76,9 @@ typedef struct _scope_t {
|
||||
struct _scope_t *next;
|
||||
mp_parse_node_t pn;
|
||||
mp_raw_code_t *raw_code;
|
||||
#if MICROPY_DEBUG_PRINTERS
|
||||
size_t raw_code_data_len; // for mp_bytecode_print
|
||||
#endif
|
||||
uint16_t simple_name; // a qstr
|
||||
uint16_t scope_flags; // see runtime0.h
|
||||
uint16_t emit_options; // see emitglue.h
|
||||
|
||||
Reference in New Issue
Block a user