| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 83a2837 commit 837fa5c
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,8 +4,6 @@ | |||
| 4 | 4 | # error "this header file must not be included directly" | |
| 5 | 5 | #endif | |
| 6 | 6 | ||
| 7 | - struct _PyInterpreterFrame; | ||
| 8 | - | ||
| 9 | 7 | /* Standard object interface */ | |
| 10 | 8 | ||
| 11 | 9 | PyAPI_FUNC(PyFrameObject *) PyFrame_New(PyThreadState *, PyCodeObject *, | |
@@ -29,18 +27,3 @@ PyAPI_FUNC(int) _PyFrame_IsEntryFrame(PyFrameObject *frame); | |||
| 29 | 27 | ||
| 30 | 28 | PyAPI_FUNC(int) PyFrame_FastToLocalsWithError(PyFrameObject *f); | |
| 31 | 29 | PyAPI_FUNC(void) PyFrame_FastToLocals(PyFrameObject *); | |
| 32 | - | ||
| 33 | - /* The following functions are for use by debuggers and other tools | ||
| 34 | - * implementing custom frame evaluators with PEP 523. */ | ||
| 35 | - | ||
| 36 | - /* Returns the code object of the frame (strong reference). | ||
| 37 | - * Does not raise an exception. */ | ||
| 38 | - PyAPI_FUNC(PyObject *) PyUnstable_InterpreterFrame_GetCode(struct _PyInterpreterFrame *frame); | ||
| 39 | - | ||
| 40 | - /* Returns a byte ofsset into the last executed instruction. | ||
| 41 | - * Does not raise an exception. */ | ||
| 42 | - PyAPI_FUNC(int) PyUnstable_InterpreterFrame_GetLasti(struct _PyInterpreterFrame *frame); | ||
| 43 | - | ||
| 44 | - /* Returns the currently executing line number, or -1 if there is no line number. | ||
| 45 | - * Does not raise an exception. */ | ||
| 46 | - PyAPI_FUNC(int) PyUnstable_InterpreterFrame_GetLine(struct _PyInterpreterFrame *frame); | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,3 +16,20 @@ PyAPI_FUNC(PyObject *) PyFrame_GetGenerator(PyFrameObject *frame); | |||
| 16 | 16 | PyAPI_FUNC(int) PyFrame_GetLasti(PyFrameObject *frame); | |
| 17 | 17 | PyAPI_FUNC(PyObject*) PyFrame_GetVar(PyFrameObject *frame, PyObject *name); | |
| 18 | 18 | PyAPI_FUNC(PyObject*) PyFrame_GetVarString(PyFrameObject *frame, const char *name); | |
| 19 | + | ||
| 20 | + /* The following functions are for use by debuggers and other tools | ||
| 21 | + * implementing custom frame evaluators with PEP 523. */ | ||
| 22 | + | ||
| 23 | + struct _PyInterpreterFrame; | ||
| 24 | + | ||
| 25 | + /* Returns the code object of the frame (strong reference). | ||
| 26 | + * Does not raise an exception. */ | ||
| 27 | + PyAPI_FUNC(PyObject *) PyUnstable_InterpreterFrame_GetCode(struct _PyInterpreterFrame *frame); | ||
| 28 | + | ||
| 29 | + /* Returns a byte ofsset into the last executed instruction. | ||
| 30 | + * Does not raise an exception. */ | ||
| 31 | + PyAPI_FUNC(int) PyUnstable_InterpreterFrame_GetLasti(struct _PyInterpreterFrame *frame); | ||
| 32 | + | ||
| 33 | + /* Returns the currently executing line number, or -1 if there is no line number. | ||
| 34 | + * Does not raise an exception. */ | ||
| 35 | + PyAPI_FUNC(int) PyUnstable_InterpreterFrame_GetLine(struct _PyInterpreterFrame *frame); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments