summaryrefslogtreecommitdiffhomepage
path: root/mrbgems
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2021-02-12 19:19:32 +0900
committerKOBAYASHI Shuji <[email protected]>2021-02-12 19:19:32 +0900
commit8ba7be09995bff4d4caa08fc9745e7b5f37ef725 (patch)
tree91602084f0844f648d8f750d8d644b6606e25081 /mrbgems
parent2af8e16cc64243503352d02ed62f033e636921da (diff)
downloadmruby-8ba7be09995bff4d4caa08fc9745e7b5f37ef725.tar.gz
mruby-8ba7be09995bff4d4caa08fc9745e7b5f37ef725.zip
Fix build `mruby-catch` gem without presym
Diffstat (limited to 'mrbgems')
-rw-r--r--mrbgems/mruby-catch/src/catch.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mrbgems/mruby-catch/src/catch.c b/mrbgems/mruby-catch/src/catch.c
index 6db8dfc49..d910cac7f 100644
--- a/mrbgems/mruby-catch/src/catch.c
+++ b/mrbgems/mruby-catch/src/catch.c
@@ -7,7 +7,7 @@
#include <mruby/presym.h>
-static const mrb_sym catch_syms_3[1] = {MRB_SYM(call),};
+MRB_PRESYM_DEFINE_VAR_AND_INITER(catch_syms_3, 1, MRB_SYM(call))
static const mrb_code catch_iseq_3[18] = {
OP_ENTER, 0x00, 0x00, 0x00,
OP_GETUPVAR, 0x02, 0x02, 0x01,
@@ -41,7 +41,7 @@ static const mrb_irep catch_irep_2 = {
static const mrb_irep *catch_reps_1[1] = {
&catch_irep_2,
};
-static const mrb_sym catch_syms_1[3] = {MRB_SYM(Object), MRB_SYM(new), MRB_SYM(call),};
+MRB_PRESYM_DEFINE_VAR_AND_INITER(catch_syms_1, 3, MRB_SYM(Object), MRB_SYM(new), MRB_SYM(call))
static const mrb_code catch_iseq_1[29] = {
OP_ENTER, 0x00, 0x20, 0x01,
OP_JMP, 0x00, 0x03,
@@ -112,6 +112,8 @@ mrb_mruby_catch_gem_init(mrb_state *mrb)
struct RProc *p;
mrb_method_t m;
+ MRB_PRESYM_INIT_SYMBOLS(mrb, catch_syms_3);
+ MRB_PRESYM_INIT_SYMBOLS(mrb, catch_syms_1);
p = mrb_proc_new(mrb, &catch_irep);
MRB_METHOD_FROM_PROC(m, p);
mrb_define_method_raw(mrb, mrb->kernel_module, MRB_SYM(catch), m);