summaryrefslogtreecommitdiff
path: root/shape.h
diff options
context:
space:
mode:
authorJean Boussier <jean.boussier@gmail.com>2025-05-28 12:39:21 +0200
committerJean Boussier <jean.boussier@gmail.com>2025-05-28 12:39:21 +0200
commit749bda96e59240f43f8938545990da505807eb36 (patch)
treebfeff97b2f6c62a1521a1465412ba54f0632faa1 /shape.h
parent658fcbe91a7c74ba33aee96c8a6c10f13ff3e6d9 (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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/shape.h b/shape.h
index b58eebd4d3..e14f1576a0 100644
--- a/shape.h
+++ b/shape.h
@@ -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