зеркало из https://github.com/github/ruby.git
* eval.c (rb_exc_raise, rb_exc_fatal): require exception object.
[ruby-core:24767] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
0a2b36a99c
Коммит
6b0ac4ae63
|
@ -1,3 +1,8 @@
|
|||
Wed Aug 5 12:54:00 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* eval.c (rb_exc_raise, rb_exc_fatal): require exception object.
|
||||
[ruby-core:24767]
|
||||
|
||||
Wed Aug 5 12:39:23 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* eval.c (rb_longjmp): reset raised flag before fatal error.
|
||||
|
|
2
eval.c
2
eval.c
|
@ -413,12 +413,14 @@ rb_longjmp(int tag, volatile VALUE mesg)
|
|||
void
|
||||
rb_exc_raise(VALUE mesg)
|
||||
{
|
||||
mesg = rb_make_exception(1, &mesg);
|
||||
rb_longjmp(TAG_RAISE, mesg);
|
||||
}
|
||||
|
||||
void
|
||||
rb_exc_fatal(VALUE mesg)
|
||||
{
|
||||
mesg = rb_make_exception(1, &mesg);
|
||||
rb_longjmp(TAG_FATAL, mesg);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче