array.c: make ary_modify_check() an alias to mrb_check_frozen().

This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-10-17 21:59:22 +09:00
parent 84c26870d2
commit 3f286f1bfd
+1 -5
View File
@@ -139,11 +139,7 @@ ary_fill_with_nil(mrb_value *ptr, mrb_int size)
}
}
static void
ary_modify_check(mrb_state *mrb, struct RArray *a)
{
mrb_check_frozen(mrb, a);
}
#define ary_modify_check(mrb, a) mrb_check_frozen((mrb), (a))
static void
ary_modify(mrb_state *mrb, struct RArray *a)