object.h: remove MRB_SET_FROZEN_FLAG/MRB_UNSET_FROZEN_FLAG macros

Simple `o->frozen = 1/0` now works.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-01-07 13:53:58 +09:00
parent c11d18e426
commit 8276143f03
8 changed files with 10 additions and 12 deletions
-2
View File
@@ -24,8 +24,6 @@ struct RBasic {
#define MRB_OBJ_IS_FROZEN 1
#define mrb_frozen_p(o) ((o)->frozen)
#define MRB_SET_FROZEN_FLAG(o) ((o)->frozen = 1)
#define MRB_UNSET_FROZEN_FLAG(o) ((o)->frozen = 0)
struct RObject {
MRB_OBJECT_HEADER;