mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 12:10:13 +01:00
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:
@@ -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__;
|
||||
|
||||
Reference in New Issue
Block a user