diff options
author | Mark Shannon <mark@hotpy.org> | 2023-07-28 08:48:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-28 08:48:35 (GMT) |
commit | 3b1a4c18426c78a2fda0d59728bfe9eb92889722 (patch) | |
tree | c512a79c5cd867b030ce76fa757968749b895d6c /Include/internal/pycore_instruments.h | |
parent | 4014869b4b2456b3da1118a37332f9e9e851aebf (diff) | |
download | cpython-3b1a4c18426c78a2fda0d59728bfe9eb92889722.zip cpython-3b1a4c18426c78a2fda0d59728bfe9eb92889722.tar.gz cpython-3b1a4c18426c78a2fda0d59728bfe9eb92889722.tar.bz2 |
[3.12] GH-106897: Add `RERAISE` event to `sys.monitoring`. (GH-107291) (GH-107346)
* Ensures that exception handling events are balanced. Each [re]raise event has a matching unwind/handled event.
Diffstat (limited to 'Include/internal/pycore_instruments.h')
-rw-r--r-- | Include/internal/pycore_instruments.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Include/internal/pycore_instruments.h b/Include/internal/pycore_instruments.h index 9fb3952..cfa5d09 100644 --- a/Include/internal/pycore_instruments.h +++ b/Include/internal/pycore_instruments.h @@ -36,12 +36,13 @@ extern "C" { #define PY_MONITORING_EVENT_EXCEPTION_HANDLED 11 #define PY_MONITORING_EVENT_PY_UNWIND 12 #define PY_MONITORING_EVENT_PY_THROW 13 +#define PY_MONITORING_EVENT_RERAISE 14 /* Ancilliary events */ -#define PY_MONITORING_EVENT_C_RETURN 14 -#define PY_MONITORING_EVENT_C_RAISE 15 +#define PY_MONITORING_EVENT_C_RETURN 15 +#define PY_MONITORING_EVENT_C_RAISE 16 typedef uint32_t _PyMonitoringEventSet; |