diff options
| author | Damien George <damien@micropython.org> | 2024-07-18 13:24:27 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2024-07-20 12:18:07 +1000 |
| commit | 5f3ecc29f8f0d69d15710ded3278fe055f532517 (patch) | |
| tree | cbc86f92b5013e21b4f03421d2c16d1e0c552740 /py/builtin.h | |
| parent | 69c25ea8653566ec97690b5121bd10b753c89426 (diff) | |
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>
Diffstat (limited to 'py/builtin.h')
| -rw-r--r-- | py/builtin.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/py/builtin.h b/py/builtin.h index 81d078980..6efe3e8fa 100644 --- a/py/builtin.h +++ b/py/builtin.h @@ -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__; |
