diff options
author | David Lechner <david@pybricks.com> | 2022-07-02 15:05:41 -0500 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-07-18 13:52:01 +1000 |
commit | 68f46342aa4c20f263cc688cc86d03d03207921e (patch) | |
tree | 5d6579cf986dc51b3f8eb4203a74dfc5d831da68 /shared/runtime/pyexec.c | |
parent | 7e4b205cb00013b272e4cf9fac128866bf0e1f21 (diff) |
shared/runtime/pyexec: Use MP_REGISTER_ROOT_POINTER().
This uses MP_REGISTER_ROOT_POINTER() to register repl_line
instead of using a conditional inside of mp_state_vm_t.
Signed-off-by: David Lechner <david@pybricks.com>
Diffstat (limited to 'shared/runtime/pyexec.c')
-rw-r--r-- | shared/runtime/pyexec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shared/runtime/pyexec.c b/shared/runtime/pyexec.c index 2763319c0..2c9f1e80f 100644 --- a/shared/runtime/pyexec.c +++ b/shared/runtime/pyexec.c @@ -488,6 +488,8 @@ int pyexec_event_repl_process_char(int c) { return res; } +MP_REGISTER_ROOT_POINTER(vstr_t * repl_line); + #else // MICROPY_REPL_EVENT_DRIVEN int pyexec_raw_repl(void) { |