mirror of
https://github.com/python/cpython.git
synced 2024-11-28 20:33:54 +08:00
7c59d7c986
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.
21 lines
337 B
C
21 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 */
|