py: Free unique_code slot for outer module.
Partly (very partly!) addresses issue #386. Most importantly, at the REPL command line, each invocation does not now lead to increased memory usage (unless you define a function/lambda).
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
void mp_emit_glue_init(void);
|
||||
void mp_emit_glue_deinit(void);
|
||||
uint mp_emit_glue_get_unique_code_id(void);
|
||||
uint mp_emit_glue_get_unique_code(uint unique_code_id);
|
||||
void mp_emit_glue_assign_byte_code(uint unique_code_id, byte *code, uint len, int n_args, int n_locals, uint scope_flags, qstr *arg_names);
|
||||
void mp_emit_glue_assign_native_code(uint unique_code_id, void *f, uint len, int n_args);
|
||||
void mp_emit_glue_assign_inline_asm_code(uint unique_code_id, void *f, uint len, int n_args);
|
||||
|
||||
Reference in New Issue
Block a user