diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-08 05:22:49 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-08 05:22:49 +0000 |
commit | 269b795556d1befc13fc2e44e3a1dd5ec2fb7950 (patch) | |
tree | 0f984b424089d1d99ce2b8a36da15476081b6139 /vm.c | |
parent | 3553a303729b15bc49e80316dedca5eb7895f128 (diff) | |
download | ruby-269b795556d1befc13fc2e44e3a1dd5ec2fb7950.tar.gz |
vm_block_handler_verify() should not return any value.
* vm_core.h (vm_block_handler_verify): this function only checks
the given block handler with VM_ASSERT(). No need to return any value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -166,6 +166,7 @@ vm_passed_block_handler(rb_thread_t *th) { VALUE block_handler = th->passed_block_handler; th->passed_block_handler = VM_BLOCK_HANDLER_NONE; + vm_block_handler_verify(block_handler); return block_handler; } @@ -1069,7 +1070,7 @@ static inline VALUE check_block_handler(rb_thread_t *th) { VALUE block_handler = VM_CF_BLOCK_HANDLER(th->ec.cfp); - VM_ASSERT(vm_block_handler_verify(block_handler)); + vm_block_handler_verify(block_handler); if (UNLIKELY(block_handler == VM_BLOCK_HANDLER_NONE)) { rb_vm_localjump_error("no block given", Qnil, 0); } @@ -1167,7 +1168,7 @@ rb_vm_invoke_proc(rb_thread_t *th, rb_proc_t *proc, int argc, const VALUE *argv, VALUE passed_block_handler) { VALUE self = vm_block_self(&proc->block); - VM_ASSERT(vm_block_handler_verify(passed_block_handler)); + vm_block_handler_verify(passed_block_handler); if (proc->is_from_method) { return vm_invoke_bmethod(th, proc, self, argc, argv, passed_block_handler); |