summaryrefslogtreecommitdiff
path: root/vm_eval.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-16 07:38:41 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-16 07:38:41 +0000
commit3936aaa59b4fcbc1592337f5b64d37295e99f8c2 (patch)
tree55f25106075e2af2b12995289f32c9c36f848727 /vm_eval.c
parent686e54f7052de070efa4276c9832b1697eea677b (diff)
make a func static.
* vm_eval.c (rb_raise_method_missing): make this func static and renmae with vm_ prefix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/vm_eval.c b/vm_eval.c
index f0f336a..9508a80 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -701,6 +701,14 @@ raise_method_missing(rb_execution_context_t *ec, int argc, const VALUE *argv, VA
}
}
+static void
+vm_raise_method_missing(rb_execution_context_t *ec, int argc, const VALUE *argv,
+ VALUE obj, int call_status)
+{
+ vm_passed_block_handler_set(ec, VM_BLOCK_HANDLER_NONE);
+ raise_method_missing(ec, argc, argv, obj, call_status | MISSING_MISSING);
+}
+
static inline VALUE
method_missing(VALUE obj, ID id, int argc, const VALUE *argv, enum method_missing_reason call_status)
{
@@ -732,14 +740,6 @@ method_missing(VALUE obj, ID id, int argc, const VALUE *argv, enum method_missin
return result;
}
-void
-rb_raise_method_missing(rb_execution_context_t *ec, int argc, const VALUE *argv,
- VALUE obj, int call_status)
-{
- vm_passed_block_handler_set(ec, VM_BLOCK_HANDLER_NONE);
- raise_method_missing(ec, argc, argv, obj, call_status | MISSING_MISSING);
-}
-
/*!
* Calls a method
* \param recv receiver of the method