extmod/modmachine: Use sys.exit as implementation of machine.soft_reset.

It does the same thing, raising `SystemExit`.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2024-07-18 13:24:27 +10:00
parent 69c25ea865
commit 5f3ecc29f8
2 changed files with 8 additions and 6 deletions

View File

@@ -126,6 +126,8 @@ MP_DECLARE_CONST_FUN_OBJ_2(mp_op_getitem_obj);
MP_DECLARE_CONST_FUN_OBJ_3(mp_op_setitem_obj);
MP_DECLARE_CONST_FUN_OBJ_2(mp_op_delitem_obj);
MP_DECLARE_CONST_FUN_OBJ_VAR_BETWEEN(mp_sys_exit_obj);
// Modules needed by the runtime.
extern const mp_obj_dict_t mp_module_builtins_globals;
extern const mp_obj_module_t mp_module___main__;