From 7bdf28265aa371b39f82dfc6562635801aff15a5 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Tue, 18 Sep 2018 09:54:26 +0300 Subject: bpo-32455: Add jump parameter to dis.stack_effect(). (GH-6610) Add C API function PyCompile_OpcodeStackEffectWithJump(). --- Python/compile.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Python/compile.c') diff --git a/Python/compile.c b/Python/compile.c index ebd73fb7231..707da79ab66 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -1116,6 +1116,12 @@ stack_effect(int opcode, int oparg, int jump) return PY_INVALID_STACK_EFFECT; /* not reachable */ } +int +PyCompile_OpcodeStackEffectWithJump(int opcode, int oparg, int jump) +{ + return stack_effect(opcode, oparg, jump); +} + int PyCompile_OpcodeStackEffect(int opcode, int oparg) { -- cgit v1.2.3