summaryrefslogtreecommitdiff
path: root/internal/gc.h
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2023-01-16 11:50:00 -0500
committerPeter Zhu <peter@peterzhu.ca>2023-01-18 08:49:32 -0500
commit4fa7d3832427ad5133838bc97be7ab2e4e832f70 (patch)
tree26cae9920e7b6ae34d06be8e61ba38a1a4d8be8e /internal/gc.h
parente3336e092977473c2c406fbfeb12279ced42102b (diff)
downloadruby-4fa7d3832427ad5133838bc97be7ab2e4e832f70.tar.gz
Don't redefine RB_OBJ_WRITE
RB_OBJ_WRITE already exists in rgengc.h, so we shouldn't redefine it in gc.h.
Diffstat (limited to 'internal/gc.h')
-rw-r--r--internal/gc.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/internal/gc.h b/internal/gc.h
index e54a5dce9d..c9123b3c7f 100644
--- a/internal/gc.h
+++ b/internal/gc.h
@@ -21,7 +21,6 @@ struct rb_objspace; /* in vm_core.h */
#ifdef NEWOBJ_OF
# undef NEWOBJ_OF
# undef RB_NEWOBJ_OF
-# undef RB_OBJ_WRITE
#endif
#define RVALUE_SIZE (sizeof(struct RBasic) + sizeof(VALUE[RBIMPL_RVALUE_EMBED_LEN_MAX]))
@@ -63,9 +62,6 @@ struct rb_objspace; /* in vm_core.h */
#endif
#define UNALIGNED_MEMBER_PTR(ptr, mem) UNALIGNED_MEMBER_ACCESS(&(ptr)->mem)
-#define RB_OBJ_WRITE(a, slot, b) \
- rb_obj_write((VALUE)(a), UNALIGNED_MEMBER_ACCESS((VALUE *)(slot)), \
- (VALUE)(b), __FILE__, __LINE__)
// We use SIZE_POOL_COUNT number of shape IDs for transitions out of different size pools
// The next available shapd ID will be the SPECIAL_CONST_SHAPE_ID