summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authordearblue <[email protected]>2021-01-31 18:13:28 +0900
committerdearblue <[email protected]>2021-01-31 18:13:28 +0900
commita9949f5da487c5f27ab6f60753c74cf58b1fa5e3 (patch)
tree72e192eec304572c0b0303663664c94bedac2cda /src
parentcee916ab0f7357a4fe544d08747b835512b56802 (diff)
downloadmruby-a9949f5da487c5f27ab6f60753c74cf58b1fa5e3.tar.gz
mruby-a9949f5da487c5f27ab6f60753c74cf58b1fa5e3.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/class.c2
1 files changed, 1 insertions, 1 deletions
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);