summaryrefslogtreecommitdiff
path: root/eval_intern.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-08 05:22:49 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-08 05:22:49 (GMT)
commit269b795556d1befc13fc2e44e3a1dd5ec2fb7950 (patch)
tree0f984b424089d1d99ce2b8a36da15476081b6139 /eval_intern.h
parent3553a303729b15bc49e80316dedca5eb7895f128 (diff)
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 'eval_intern.h')
-rw-r--r--eval_intern.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/eval_intern.h b/eval_intern.h
index ed6ec47..399faf3 100644
--- a/eval_intern.h
+++ b/eval_intern.h
@@ -7,7 +7,7 @@
static inline void
vm_passed_block_handler_set(rb_thread_t *th, VALUE block_handler)
{
- VM_ASSERT(vm_block_handler_verify(block_handler));
+ vm_block_handler_verify(block_handler);
th->passed_block_handler = block_handler;
}
@@ -15,7 +15,7 @@ static inline void
pass_passed_block_handler(rb_thread_t *th)
{
VALUE block_handler = rb_vm_frame_block_handler(th->ec.cfp);
- VM_ASSERT(vm_block_handler_verify(block_handler));
+ vm_block_handler_verify(block_handler);
vm_passed_block_handler_set(th, block_handler);
VM_ENV_FLAGS_SET(th->ec.cfp->ep, VM_FRAME_FLAG_PASSED);
}