mruby-set: add mrb_static_assert_object_size

The C struct that implements Ruby object should fit in RVALUE.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-06-25 15:36:35 +09:00
parent 5963fbb56b
commit c7bbd8e10f
+2
View File
@@ -343,6 +343,8 @@ struct RSet {
kset_t set; /* Embedded directly, not a pointer */
};
mrb_static_assert_object_size(struct RSet);
#define mrb_set_ptr(o) ((struct RSet*)mrb_obj_ptr(o))
/* Get pointer to embedded set */