diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-02-12 21:11:59 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-02-12 21:11:59 +0900 |
| commit | 5ba37db981763a7a7fce7364004a725538b44c0d (patch) | |
| tree | 5e7cb1fbfcab051d0585d7e57382ae6721d9f797 /mrbgems/mruby-catch | |
| parent | d3fbac4d53de338bc5560b985fb7e51112d3cab3 (diff) | |
| parent | 8ba7be09995bff4d4caa08fc9745e7b5f37ef725 (diff) | |
| download | mruby-5ba37db981763a7a7fce7364004a725538b44c0d.tar.gz mruby-5ba37db981763a7a7fce7364004a725538b44c0d.zip | |
Merge pull request #5336 from shuujii/fix-build-mruby-catch-gem-without-presym
Fix build `mruby-catch` gem without presym
Diffstat (limited to 'mrbgems/mruby-catch')
| -rw-r--r-- | mrbgems/mruby-catch/src/catch.c | 6 |
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); |
