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
862517d5
Commit
862517d5
authored
Sep 20, 2013
by
Keita Obo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use self for the given proc
parent
d74887f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/vm.c
src/vm.c
+2
-2
No files found.
src/vm.c
View file @
862517d5
...
...
@@ -460,7 +460,7 @@ mrb_yield_argv(mrb_state *mrb, mrb_value b, int argc, mrb_value *argv)
{
struct
RProc
*
p
=
mrb_proc_ptr
(
b
);
return
mrb_yield_internal
(
mrb
,
b
,
argc
,
argv
,
mrb
->
c
->
stack
[
0
],
p
->
target_class
);
return
mrb_yield_internal
(
mrb
,
b
,
argc
,
argv
,
p
->
env
->
stack
[
0
],
p
->
target_class
);
}
mrb_value
...
...
@@ -468,7 +468,7 @@ mrb_yield(mrb_state *mrb, mrb_value b, mrb_value arg)
{
struct
RProc
*
p
=
mrb_proc_ptr
(
b
);
return
mrb_yield_internal
(
mrb
,
b
,
1
,
&
arg
,
mrb
->
c
->
stack
[
0
],
p
->
target_class
);
return
mrb_yield_internal
(
mrb
,
b
,
1
,
&
arg
,
p
->
env
->
stack
[
0
],
p
->
target_class
);
}
typedef
enum
{
...
...
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