mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
bpo-45152: Add HAS_CONST macro and get_const_value() function and use… (#28262)
This commit is contained in:
parent
9f93018b69
commit
c2f1e95337
3 changed files with 53 additions and 7 deletions
4
Include/opcode.h
generated
4
Include/opcode.h
generated
|
|
@ -190,6 +190,10 @@ static uint32_t _PyOpcode_Jump[8] = {
|
|||
};
|
||||
#endif /* OPCODE_TABLES */
|
||||
|
||||
#define HAS_CONST(op) (false\
|
||||
|| ((op) == 100) \
|
||||
)
|
||||
|
||||
#define HAS_ARG(op) ((op) >= HAVE_ARGUMENT)
|
||||
|
||||
/* Reserve some bytecodes for internal use in the compiler.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue