#ifndef Py_LIMITED_API
#ifndef Py_CODE_H
#define Py_CODE_H
#ifdef __cplusplus
extern "C" {
#endif
#define _PY_MONITORING_TOOL_IDS …
#define _PY_MONITORING_LOCAL_EVENTS …
#define _PY_MONITORING_UNGROUPED_EVENTS …
#define _PY_MONITORING_EVENTS …
_Py_LocalMonitors;
_Py_GlobalMonitors;
_PyCoCached;
_PyCoLineInstrumentationData;
_PyExecutorArray;
_PyCoMonitoringData;
#ifdef Py_GIL_DISABLED
typedef struct {
Py_ssize_t size;
char *entries[1];
} _PyCodeArray;
#define _PyCode_DEF_THREAD_LOCAL_BYTECODE …
#else
#define _PyCode_DEF_THREAD_LOCAL_BYTECODE() …
#endif
#define _PyCode_DEF(SIZE) …
struct PyCodeObject _PyCode_DEF(1);
#define CO_OPTIMIZED …
#define CO_NEWLOCALS …
#define CO_VARARGS …
#define CO_VARKEYWORDS …
#define CO_NESTED …
#define CO_GENERATOR …
#define CO_COROUTINE …
#define CO_ITERABLE_COROUTINE …
#define CO_ASYNC_GENERATOR …
#define CO_FUTURE_DIVISION …
#define CO_FUTURE_ABSOLUTE_IMPORT …
#define CO_FUTURE_WITH_STATEMENT …
#define CO_FUTURE_PRINT_FUNCTION …
#define CO_FUTURE_UNICODE_LITERALS …
#define CO_FUTURE_BARRY_AS_BDFL …
#define CO_FUTURE_GENERATOR_STOP …
#define CO_FUTURE_ANNOTATIONS …
#define CO_NO_MONITORING_EVENTS …
#define CO_HAS_DOCSTRING …
#define PY_PARSER_REQUIRES_FUTURE_KEYWORD
#define CO_MAXBLOCKS …
PyAPI_DATA(PyTypeObject) PyCode_Type;
#define PyCode_Check(op) …
static inline Py_ssize_t PyCode_GetNumFree(PyCodeObject *op) { … }
static inline int PyUnstable_Code_GetFirstFree(PyCodeObject *op) { … }
Py_DEPRECATED(3.13) static inline int PyCode_GetFirstFree(PyCodeObject *op) { … }
PyAPI_FUNC(PyCodeObject *) PyUnstable_Code_New(
int, int, int, int, int, PyObject *, PyObject *,
PyObject *, PyObject *, PyObject *, PyObject *,
PyObject *, PyObject *, PyObject *, int, PyObject *,
PyObject *);
PyAPI_FUNC(PyCodeObject *) PyUnstable_Code_NewWithPosOnlyArgs(
int, int, int, int, int, int, PyObject *, PyObject *,
PyObject *, PyObject *, PyObject *, PyObject *,
PyObject *, PyObject *, PyObject *, int, PyObject *,
PyObject *);
_Py_DEPRECATED_EXTERNALLY(…) static inline PyCodeObject *
PyCode_New(
int a, int b, int c, int d, int e, PyObject *f, PyObject *g,
PyObject *h, PyObject *i, PyObject *j, PyObject *k,
PyObject *l, PyObject *m, PyObject *n, int o, PyObject *p,
PyObject *q)
{ … }
_Py_DEPRECATED_EXTERNALLY(…) static inline PyCodeObject *
PyCode_NewWithPosOnlyArgs(
int a, int poac, int b, int c, int d, int e, PyObject *f, PyObject *g,
PyObject *h, PyObject *i, PyObject *j, PyObject *k,
PyObject *l, PyObject *m, PyObject *n, int o, PyObject *p,
PyObject *q)
{ … }
PyAPI_FUNC(PyCodeObject *)
PyCode_NewEmpty(const char *filename, const char *funcname, int firstlineno);
PyAPI_FUNC(int) PyCode_Addr2Line(PyCodeObject *, int);
PyAPI_FUNC(int) PyCode_Addr2Location(PyCodeObject *, int, int *, int *, int *, int *);
#define PY_FOREACH_CODE_EVENT(V) …
PyCodeEvent;
PyCode_WatchCallback;
PyAPI_FUNC(int) PyCode_AddWatcher(PyCode_WatchCallback callback);
PyAPI_FUNC(int) PyCode_ClearWatcher(int watcher_id);
struct _opaque { … };
PyCodeAddressRange;
PyAPI_FUNC(int) _PyCode_CheckLineNumber(int lasti, PyCodeAddressRange *bounds);
PyAPI_FUNC(PyObject*) _PyCode_ConstantKey(PyObject *obj);
PyAPI_FUNC(PyObject*) PyCode_Optimize(PyObject *code, PyObject* consts,
PyObject *names, PyObject *lnotab);
PyAPI_FUNC(int) PyUnstable_Code_GetExtra(
PyObject *code, Py_ssize_t index, void **extra);
PyAPI_FUNC(int) PyUnstable_Code_SetExtra(
PyObject *code, Py_ssize_t index, void *extra);
_Py_DEPRECATED_EXTERNALLY(…) static inline int
_PyCode_GetExtra(PyObject *code, Py_ssize_t index, void **extra)
{ … }
_Py_DEPRECATED_EXTERNALLY(…) static inline int
_PyCode_SetExtra(PyObject *code, Py_ssize_t index, void *extra)
{ … }
PyAPI_FUNC(PyObject *) PyCode_GetCode(PyCodeObject *code);
PyAPI_FUNC(PyObject *) PyCode_GetVarnames(PyCodeObject *code);
PyAPI_FUNC(PyObject *) PyCode_GetCellvars(PyCodeObject *code);
PyAPI_FUNC(PyObject *) PyCode_GetFreevars(PyCodeObject *code);
_PyCodeLocationInfoKind;
#ifdef __cplusplus
}
#endif
#endif
#endif