bpo-32455: Add jump parameter to dis.stack_effect(). (GH-6610)

Add C API function PyCompile_OpcodeStackEffectWithJump().
This commit is contained in:
Serhiy Storchaka 2018-09-18 09:54:26 +03:00 committed by GitHub
parent b042cf10c6
commit 7bdf28265a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 99 additions and 26 deletions

View file

@ -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)
{