diff options
author | Jean Boussier <jean.boussier@gmail.com> | 2025-05-28 12:39:21 +0200 |
---|---|---|
committer | Jean Boussier <jean.boussier@gmail.com> | 2025-05-28 12:39:21 +0200 |
commit | 749bda96e59240f43f8938545990da505807eb36 (patch) | |
tree | bfeff97b2f6c62a1521a1465412ba54f0632faa1 /shape.h | |
parent | 658fcbe91a7c74ba33aee96c8a6c10f13ff3e6d9 (diff) |
Refactor attr_index_t caches
Ensure the same helpers are used for packing and unpacking.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13455
Diffstat (limited to 'shape.h')
-rw-r--r-- | shape.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -30,6 +30,7 @@ typedef uint32_t redblack_id_t; # define SHAPE_MAX_VARIATIONS 8 # define INVALID_SHAPE_ID (((uintptr_t)1 << SHAPE_ID_NUM_BITS) - 1) +#define ATTR_INDEX_NOT_SET (attr_index_t)-1 #define ROOT_SHAPE_ID 0x0 #define SPECIAL_CONST_SHAPE_ID 0x1 |