зеркало из https://github.com/github/ruby.git
* eval.c (rb_threadptr_errinfo): renamed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
d45189ba5b
Коммит
478d3535ef
|
@ -212,7 +212,7 @@ void rb_thread_terminate_all(void);
|
|||
VALUE rb_vm_top_self();
|
||||
VALUE rb_vm_cbase(void);
|
||||
void rb_trap_restore_mask(void);
|
||||
VALUE rb_rubylevel_thread_errinfo(rb_thread_t *);
|
||||
VALUE rb_threadptr_errinfo(rb_thread_t *);
|
||||
|
||||
#ifndef CharNext /* defined as CharNext[AW] on Windows. */
|
||||
#define CharNext(p) ((p) + mblen(p, RUBY_MBCHAR_MAXSIZE))
|
||||
|
|
2
thread.c
2
thread.c
|
@ -1248,7 +1248,7 @@ rb_threadptr_execute_interrupts_rec(rb_thread_t *th, int sched_depth)
|
|||
}
|
||||
else {
|
||||
if (err == eReRaiseSignal) {
|
||||
err = rb_rubylevel_thread_errinfo(th);
|
||||
err = rb_threadptr_errinfo(th);
|
||||
err = rb_make_exception(NIL_P(err) ? 0 : 1, &err);
|
||||
}
|
||||
rb_exc_raise(err);
|
||||
|
|
Загрузка…
Ссылка в новой задаче