Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
5ba37db9
Unverified
Commit
5ba37db9
authored
Feb 12, 2021
by
Yukihiro "Matz" Matsumoto
Committed by
GitHub
Feb 12, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5336 from shuujii/fix-build-mruby-catch-gem-without-presym
Fix build `mruby-catch` gem without presym
parents
d3fbac4d
8ba7be09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
mrbgems/mruby-catch/src/catch.c
mrbgems/mruby-catch/src/catch.c
+4
-2
No files found.
mrbgems/mruby-catch/src/catch.c
View file @
5ba37db9
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment