mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
vm_eval.c: rb_catch_protect
* vm_eval.c (rb_catch_protect): new function similar to rb_catch_obj(), but protect from all global jumps like as rb_load_protect(), rb_protect(), etc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1083b375ec
commit
c7159e81fc
3 changed files with 20 additions and 3 deletions
|
@ -771,6 +771,7 @@ VALUE rb_check_block_call(VALUE, ID, int, const VALUE *, rb_block_call_func_t, V
|
|||
typedef void rb_check_funcall_hook(int, VALUE, ID, int, const VALUE *, VALUE);
|
||||
VALUE rb_check_funcall_with_hook(VALUE recv, ID mid, int argc, const VALUE *argv,
|
||||
rb_check_funcall_hook *hook, VALUE arg);
|
||||
VALUE rb_catch_protect(VALUE t, rb_block_call_func *func, VALUE data, int *stateptr);
|
||||
|
||||
/* vm_insnhelper.c */
|
||||
VALUE rb_equal_opt(VALUE obj1, VALUE obj2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue