Commit a9771eb
committed
py: Add MICROPY_VM_HOOK_EXC for exception-to-bytecode handoff.
New VM hook that fires when an unhandled exception is passed to byte
code for handling by a try/except block. Unlike MICROPY_NLR_RAISE_HOOK
which fires on every nlr_raise (including internal StopIteration, import
probes, etc.), this hook only fires when an exception actually reaches
a Python exception handler.
Signed-off-by: iabdalkader <[email protected]>1 parent 082381a commit a9771eb
2 files changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
737 | 737 | | |
738 | 738 | | |
739 | 739 | | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
740 | 745 | | |
741 | 746 | | |
742 | 747 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1476 | 1476 | | |
1477 | 1477 | | |
1478 | 1478 | | |
| 1479 | + | |
1479 | 1480 | | |
1480 | 1481 | | |
1481 | 1482 | | |
| |||
0 commit comments