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
f8b31a0d
Commit
f8b31a0d
authored
Mar 15, 2017
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
`instance_eval` method does not introduce C function boundary; fix #3508
parent
4b1e5d47
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
mrbgems/mruby-eval/src/eval.c
mrbgems/mruby-eval/src/eval.c
+1
-3
No files found.
mrbgems/mruby-eval/src/eval.c
View file @
f8b31a0d
...
...
@@ -231,7 +231,6 @@ f_eval(mrb_state *mrb, mrb_value self)
static
mrb_value
f_instance_eval
(
mrb_state
*
mrb
,
mrb_value
self
)
{
struct
mrb_context
*
c
=
mrb
->
c
;
mrb_value
b
;
mrb_int
argc
;
mrb_value
*
argv
;
...
...
@@ -246,10 +245,9 @@ f_instance_eval(mrb_state *mrb, mrb_value self)
struct
RProc
*
proc
;
mrb_get_args
(
mrb
,
"s|zi"
,
&
s
,
&
len
,
&
file
,
&
line
);
c
->
ci
->
acc
=
CI_ACC_SKIP
;
cv
=
mrb_singleton_class
(
mrb
,
self
);
c
->
ci
->
target_class
=
mrb_class_ptr
(
cv
);
proc
=
create_proc_from_string
(
mrb
,
s
,
len
,
mrb_nil_value
(),
file
,
line
);
proc
->
target_class
=
mrb_class_ptr
(
cv
);
mrb
->
c
->
ci
->
env
=
NULL
;
mrb_assert
(
!
MRB_PROC_CFUNC_P
(
proc
));
return
mrb_exec_irep
(
mrb
,
self
,
proc
);
...
...
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