mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Move the declaration into the function
instead of 'do not call it directly.' comment.
This commit is contained in:
parent
519062b350
commit
a776032ef1
2 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue