るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.021秒)
トップページ > クエリ:value[x] > クエリ:rb_throw[x]

別のキーワード

  1. mkmf install_rb
  2. kernel install_rb
  3. rb_throw
  4. rb_f_throw
  5. rb_true

検索結果

void rb_throw(const char *tag, VALUE val) (38200.0)

throw の実体。返り値を val として、 tag を catch したところまでジャンプします。

throw の実体。返り値を val として、
tag を catch したところまでジャンプします。

rb_catch も参照してください。

VALUE rb_catch(const char *tag, VALUE (*proc)(), VALUE data) (354.0)

catch と同等の動作を実行します。

... VALUE
foo_yield(VALUE a, VALUE b)
{
return rb_yield(b);
}

static VALUE
foo_catch(VALUE obj)
{
return rb_catch("footag", foo_yield, INT2FIX(2));
}

static VALUE
foo_abort(VALUE obj)
{
return rb_throw("footag", Qnil);
}

void
Init_foo(void)
{
VALUE
...