[前][次][番号順一覧][スレッド一覧]

ruby-changes:63605

From: Nobuyoshi <ko1@a...>
Date: Sun, 15 Nov 2020 10:04:29 +0900 (JST)
Subject: [ruby-changes:63605] 0433f5ae4d (master): Functions defined in headers should be static inline

https://git.ruby-lang.org/ruby.git/commit/?id=0433f5ae4d

From 0433f5ae4d14ca433b6f6d5e855d6ef8cd4c8021 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sun, 15 Nov 2020 09:56:16 +0900
Subject: Functions defined in headers should be static inline


diff --git a/vm_insnhelper.h b/vm_insnhelper.h
index 11785a5..56c4b96 100644
--- a/vm_insnhelper.h
+++ b/vm_insnhelper.h
@@ -247,7 +247,7 @@ THROW_DATA_CONSUMED_SET(struct vm_throw_data *obj) https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.h#L247
 
 /* 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) &&
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]