diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-16 01:14:56 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-16 01:14:56 +0000 |
commit | 43be7b67c88c35f2de822a54ada0e75dfdea6f2d (patch) | |
tree | 470fdac13550cd0bf54b08798a3cc5aa94655e84 /README.EXT | |
parent | e0976d1a6d3b6ce7c24d66831124e0a166d34de5 (diff) |
* README.EXT, README.EXT.ja (rb_protect, rb_jump_tag): added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'README.EXT')
-rw-r--r-- | README.EXT | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/README.EXT b/README.EXT index 75f52f71c5..9917d1b496 100644 --- a/README.EXT +++ b/README.EXT @@ -1194,7 +1194,20 @@ exception occurs, from func2 otherwise. Calls the function func1 with arg1 as the argument, then calls func2 with arg2 if execution terminated. The return value from -rb_ensure() is that of func1. +rb_ensure() is that of func1 when no exception occured. + + VALUE rb_protect(VALUE (*func) (VALUE), VALUE arg, int *state) + +Calls the function func with arg as the argument. If no exception +occured during func, it returns the result of func and *state is zero. +Otherwise, it returns Qnil and sets *state to nonzero. If state is +NULL, it is not set in both cases. + + void rb_jump_tag(int state) + +Continues the exception caught by rb_protect() and rb_eval_string_protect(). +state must be the returned value from those functions. This function +never return to the caller. ** Exceptions and Errors |