summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-08 05:22:49 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-08 05:22:49 +0000
commit269b795556d1befc13fc2e44e3a1dd5ec2fb7950 (patch)
tree0f984b424089d1d99ce2b8a36da15476081b6139 /vm_core.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 'vm_core.h')
-rw-r--r--vm_core.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/vm_core.h b/vm_core.h
index a55942e290..52d1bbcdce 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -1302,12 +1302,11 @@ vm_block_handler_type(VALUE block_handler)
}
}
-static inline int
+static inline void
vm_block_handler_verify(VALUE block_handler)
{
VM_ASSERT(block_handler == VM_BLOCK_HANDLER_NONE ||
(vm_block_handler_type(block_handler), 1));
- return 1;
}
static inline enum rb_block_type