summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2020-11-18 10:52:56 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2020-11-18 10:52:56 +0900
commita776032ef183d6bc1236b2306ada5611b4d6849f (patch)
treec1f827748a9640b59a0c7200e1a4f0ea5d4e309a /include
parent519062b3501a128d917cc599184f2b72f38e9c0c (diff)
Move the declaration into the function
instead of 'do not call it directly.' comment.
Diffstat (limited to 'include')
-rw-r--r--include/ruby/ractor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ruby/ractor.h b/include/ruby/ractor.h
index 6908c0a453..3b4552edef 100644
--- a/include/ruby/ractor.h
+++ b/include/ruby/ractor.h
@@ -22,8 +22,6 @@ void rb_ractor_stdin_set(VALUE);
void rb_ractor_stdout_set(VALUE);
void rb_ractor_stderr_set(VALUE);
-bool rb_ractor_shareable_p_continue(VALUE obj); // do not call it directly.
-
RUBY_SYMBOL_EXPORT_END
#define RB_OBJ_SHAREABLE_P(obj) FL_TEST_RAW((obj), RUBY_FL_SHAREABLE)
@@ -31,6 +29,8 @@ RUBY_SYMBOL_EXPORT_END
static inline bool
rb_ractor_shareable_p(VALUE obj)
{
+ bool rb_ractor_shareable_p_continue(VALUE obj);
+
if (SPECIAL_CONST_P(obj)) {
return true;
}