summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-11-15 09:56:16 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-11-15 09:59:29 +0900
commit0433f5ae4d14ca433b6f6d5e855d6ef8cd4c8021 (patch)
tree2d845cf61954d607122bf5bd9f0cf3bed8f3d60e
parent311a66b7f5de767b4e41da06c9b043bdc92f1b6c (diff)
Functions defined in headers should be static inline
-rw-r--r--vm_insnhelper.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_insnhelper.h b/vm_insnhelper.h
index 11785a5e1a..56c4b96458 100644
--- a/vm_insnhelper.h
+++ b/vm_insnhelper.h
@@ -247,7 +247,7 @@ THROW_DATA_CONSUMED_SET(struct vm_throw_data *obj)
/* If this returns true, an optimized function returned by `vm_call_iseq_setup_func`
can be used as a fastpath. */
-static bool
+static inline bool
vm_call_iseq_optimizable_p(const struct rb_callinfo *ci, const struct rb_callcache *cc)
{
return !IS_ARGS_SPLAT(ci) && !IS_ARGS_KEYWORD(ci) &&