diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-09-23 02:20:43 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-09-23 02:21:54 +0900 |
commit | 142efba93e91209a7f336863974d4c84a969e2a3 (patch) | |
tree | df33aa12d6d752c6326334386802d3188c1373ca | |
parent | cadfaacb2533d47d52dbb5dbefe724d7bf11112e (diff) | |
download | ruby-142efba93e91209a7f336863974d4c84a969e2a3.tar.gz |
Adjusted directives order of a function [ci skip]
-rw-r--r-- | thread.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -106,7 +106,9 @@ enum SLEEP_FLAGS { #define THREAD_LOCAL_STORAGE_INITIALISED FL_USER13 #define THREAD_LOCAL_STORAGE_INITIALISED_P(th) RB_FL_TEST_RAW((th), THREAD_LOCAL_STORAGE_INITIALISED) -static VALUE inline rb_thread_local_storage(VALUE thread) { +static inline VALUE +rb_thread_local_storage(VALUE thread) +{ if (LIKELY(!THREAD_LOCAL_STORAGE_INITIALISED_P(thread))) { rb_ivar_set(thread, idLocals, rb_hash_new()); RB_FL_SET_RAW(thread, THREAD_LOCAL_STORAGE_INITIALISED); |