diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-09-18 06:54:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-18 06:54:26 (GMT) |
commit | 7bdf28265aa371b39f82dfc6562635801aff15a5 (patch) | |
tree | 594df8e94f169b57113ace706e148ddffa5b61a2 /Include/compile.h | |
parent | b042cf10c6084d14279c55a7e0d2d7595ff4e694 (diff) | |
download | cpython-7bdf28265aa371b39f82dfc6562635801aff15a5.zip cpython-7bdf28265aa371b39f82dfc6562635801aff15a5.tar.gz cpython-7bdf28265aa371b39f82dfc6562635801aff15a5.tar.bz2 |
bpo-32455: Add jump parameter to dis.stack_effect(). (GH-6610)
Add C API function PyCompile_OpcodeStackEffectWithJump().
Diffstat (limited to 'Include/compile.h')
-rw-r--r-- | Include/compile.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/compile.h b/Include/compile.h index edb961f..2dacfff 100644 --- a/Include/compile.h +++ b/Include/compile.h @@ -75,6 +75,7 @@ PyAPI_FUNC(PyObject*) _Py_Mangle(PyObject *p, PyObject *name); #define PY_INVALID_STACK_EFFECT INT_MAX PyAPI_FUNC(int) PyCompile_OpcodeStackEffect(int opcode, int oparg); +PyAPI_FUNC(int) PyCompile_OpcodeStackEffectWithJump(int opcode, int oparg, int jump); PyAPI_FUNC(int) _PyAST_Optimize(struct _mod *, PyArena *arena, int optimize); |