From a9949f5da487c5f27ab6f60753c74cf58b1fa5e3 Mon Sep 17 00:00:00 2001 From: dearblue Date: Sun, 31 Jan 2021 18:13:28 +0900 Subject: Introduced `MRB_PRESYM_INIT_SYMBOLS()` The `init_SYMBOLS()` function implicitly defined in `MRB_PRESYM_DEFINE_VAR_AND_INITER()` requires some familiarity when trying to find it from the caller. By introducing `MRB_PRESYM_INIT_SYMBOLS()`, it is possible to find directly from the identifier. --- src/class.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/class.c') diff --git a/src/class.c b/src/class.c index 126ac0004..ac8cf423e 100644 --- a/src/class.c +++ b/src/class.c @@ -2817,7 +2817,7 @@ init_class_new(mrb_state *mrb, struct RClass *cls) struct RProc *p; mrb_method_t m; - init_new_syms(mrb); + MRB_PRESYM_INIT_SYMBOLS(mrb, new_syms); p = mrb_proc_new(mrb, &new_irep); MRB_METHOD_FROM_PROC(m, p); mrb_define_method_raw(mrb, cls, MRB_SYM(new), m); -- cgit v1.2.3