From 3c137dc613c860f605d3520d7fd722cd8ed79da6 Mon Sep 17 00:00:00 2001 From: Itamar Ostricher Date: Fri, 2 Dec 2022 09:28:27 -0800 Subject: GH-91054: Add code object watchers API (GH-99859) * Add API to allow extensions to set callback function on creation and destruction of PyCodeObject Co-authored-by: Ye11ow-Flash --- Include/internal/pycore_code.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Include/internal/pycore_code.h') diff --git a/Include/internal/pycore_code.h b/Include/internal/pycore_code.h index 80c1bfb6c9..357fc85a95 100644 --- a/Include/internal/pycore_code.h +++ b/Include/internal/pycore_code.h @@ -4,6 +4,8 @@ extern "C" { #endif +#define CODE_MAX_WATCHERS 8 + /* PEP 659 * Specialization and quickening structs and helper functions */ -- cgit v1.2.1