mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
0a2b36a99c
commit
6b0ac4ae63
2 changed files with 7 additions and 0 deletions
|
@ -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>
|
Wed Aug 5 12:39:23 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* eval.c (rb_longjmp): reset raised flag before fatal error.
|
* 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
|
void
|
||||||
rb_exc_raise(VALUE mesg)
|
rb_exc_raise(VALUE mesg)
|
||||||
{
|
{
|
||||||
|
mesg = rb_make_exception(1, &mesg);
|
||||||
rb_longjmp(TAG_RAISE, mesg);
|
rb_longjmp(TAG_RAISE, mesg);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
rb_exc_fatal(VALUE mesg)
|
rb_exc_fatal(VALUE mesg)
|
||||||
{
|
{
|
||||||
|
mesg = rb_make_exception(1, &mesg);
|
||||||
rb_longjmp(TAG_FATAL, mesg);
|
rb_longjmp(TAG_FATAL, mesg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue