* README.EXT, README.EXT.ja: rb_iter_break() and rb_iter_break_value().

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-01-24 06:28:26 +00:00
parent 04726dd749
commit e187c4ca1f
2 changed files with 21 additions and 0 deletions

View File

@ -1271,6 +1271,17 @@ Continues the exception caught by rb_protect() and rb_eval_string_protect().
state must be the returned value from those functions. This function state must be the returned value from those functions. This function
never return to the caller. never return to the caller.
void rb_iter_break()
Exits from the current innermost block. This function never return to
the caller.
void rb_iter_break_value(VALUE value)
Exits from the current innermost block with the value. The block will
return the given argument value. This function never return to the
caller.
** Exceptions and Errors ** Exceptions and Errors
void rb_warn(const char *fmt, ...) void rb_warn(const char *fmt, ...)

View File

@ -1345,6 +1345,16 @@ void rb_jump_tag(int state)
送するstateはそれらの関数から返された値でなければならない 送するstateはそれらの関数から返された値でなければならない
この関数は直接の呼び出し元に戻らない. この関数は直接の呼び出し元に戻らない.
void rb_iter_break()
現在の最も内側のブロックを終了する.この関数は直接の呼び出
し元に戻らない.
void rb_iter_break_value(VALUE value)
現在の最も内側のブロックをvalueで終了するブロックは引数で
与えられたvalueを返すこの関数は直接の呼び出し元に戻らない
** 例外・エラー ** 例外・エラー
void rb_warning(const char *fmt, ...) void rb_warning(const char *fmt, ...)