mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00

Add a new separated pyframe.h header file of the PyFrame public C API: it is included by Python.h. Add PyFrame_GetLineNumber() to the limited C API. Replace "struct _frame" with "PyFrameObject" in header files. PyFrameObject is now defined as struct _frame by pyframe.h which is included early enough in Python.h.
20 lines
337 B
C
20 lines
337 B
C
/* Frame object interface */
|
|
|
|
#ifndef Py_FRAMEOBJECT_H
|
|
#define Py_FRAMEOBJECT_H
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include "pyframe.h"
|
|
|
|
#ifndef Py_LIMITED_API
|
|
# define Py_CPYTHON_FRAMEOBJECT_H
|
|
# include "cpython/frameobject.h"
|
|
# undef Py_CPYTHON_FRAMEOBJECT_H
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif /* !Py_FRAMEOBJECT_H */
|