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>
This commit is contained in:
David Lechner
2022-07-02 15:05:41 -05:00
committed by Damien George
parent 7e4b205cb0
commit 68f46342aa
4 changed files with 4 additions and 6 deletions

View File

@@ -198,10 +198,6 @@ typedef struct _mp_state_vm_t {
// root pointers for extmod
#if MICROPY_REPL_EVENT_DRIVEN
vstr_t *repl_line;
#endif
#if MICROPY_PY_OS_DUPTERM
mp_obj_t dupterm_objs[MICROPY_PY_OS_DUPTERM];
#endif