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
5de62ac2
Commit
5de62ac2
authored
Feb 26, 2013
by
Cremno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mrb_funcall_with_block: adj. ci & sp after error
see #894 / [ruby-talk:404969]
parent
a3135e80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/vm.c
src/vm.c
+5
-0
No files found.
src/vm.c
View file @
5de62ac2
...
@@ -316,8 +316,13 @@ mrb_funcall_with_block(mrb_state *mrb, mrb_value self, mrb_sym mid, int argc, mr
...
@@ -316,8 +316,13 @@ mrb_funcall_with_block(mrb_state *mrb, mrb_value self, mrb_sym mid, int argc, mr
if
(
!
mrb
->
jmp
)
{
if
(
!
mrb
->
jmp
)
{
jmp_buf
c_jmp
;
jmp_buf
c_jmp
;
mrb_callinfo
*
old_ci
=
mrb
->
ci
;
if
(
setjmp
(
c_jmp
)
!=
0
)
{
/* error */
if
(
setjmp
(
c_jmp
)
!=
0
)
{
/* error */
while
(
old_ci
!=
mrb
->
ci
)
{
mrb
->
stack
=
mrb
->
stbase
+
mrb
->
ci
->
stackidx
;
cipop
(
mrb
);
}
mrb
->
jmp
=
0
;
mrb
->
jmp
=
0
;
return
mrb_nil_value
();
return
mrb_nil_value
();
}
}
...
...
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