mirror of
https://github.com/python/cpython
synced 2024-09-05 16:38:56 +00:00
![Victor Stinner](/assets/img/avatar_default.png)
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 */
|