summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_instruments.h
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2023-07-28 08:48:35 (GMT)
committerGitHub <noreply@github.com>2023-07-28 08:48:35 (GMT)
commit3b1a4c18426c78a2fda0d59728bfe9eb92889722 (patch)
treec512a79c5cd867b030ce76fa757968749b895d6c /Include/internal/pycore_instruments.h
parent4014869b4b2456b3da1118a37332f9e9e851aebf (diff)
downloadcpython-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.h5
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;