mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-105214: Use named constants for MAKE_FUNCTION oparg (#105215)
This commit is contained in:
parent
41de54378d
commit
44bb03f856
6 changed files with 294 additions and 289 deletions
|
@ -85,6 +85,12 @@ is_bit_set_in_table(const uint32_t *table, int bitindex) {
|
|||
#undef LOG_BITS_PER_INT
|
||||
#undef MASK_LOW_LOG_BITS
|
||||
|
||||
/* Flags used in the oparg for MAKE_FUNCTION */
|
||||
#define MAKE_FUNCTION_DEFAULTS 0x01
|
||||
#define MAKE_FUNCTION_KWDEFAULTS 0x02
|
||||
#define MAKE_FUNCTION_ANNOTATIONS 0x04
|
||||
#define MAKE_FUNCTION_CLOSURE 0x08
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue