mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-32455: Add jump parameter to dis.stack_effect(). (GH-6610)
Add C API function PyCompile_OpcodeStackEffectWithJump().
This commit is contained in:
parent
b042cf10c6
commit
7bdf28265a
8 changed files with 99 additions and 26 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue