When `MICROPY_PYEXEC_ENABLE_EXIT_CODE_HANDLING` is enabled, `SystemExit` now sets the `PYEXEC_FORCED_EXIT` flag in addition to the exit code. This allows the REPL to properly detect and exit when SystemExit is raised, while still preserving the exit code in the lower bits. Fixes `repl_lock.py` test which expects REPL to exit on `SystemExit`. Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au> |
||
|---|---|---|
| .. | ||
| gchelper_generic.c | ||
| gchelper_native.c | ||
| gchelper_rv32i.s | ||
| gchelper_rv64i.s | ||
| gchelper_thumb1.s | ||
| gchelper_thumb2.s | ||
| gchelper.h | ||
| interrupt_char.c | ||
| interrupt_char.h | ||
| mpirq.c | ||
| mpirq.h | ||
| pyexec.c | ||
| pyexec.h | ||
| semihosting_arm.c | ||
| semihosting_arm.h | ||
| semihosting_rv32.c | ||
| semihosting_rv32.h | ||
| softtimer.c | ||
| softtimer.h | ||
| stdout_helpers.c | ||
| sys_stdio_mphal.c | ||