aboutsummaryrefslogtreecommitdiffstats
path: root/include/ruby
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-11-26 19:09:16 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-11-30 21:39:28 +0900
commit0cdad3b92a7e117bc7e36779140f5c83b07ca7ce (patch)
tree2d1616a85c086cd458c054309368dd175ba7602a /include/ruby
parent30f7b7a0535575a4995ea59086830ee19c79ea82 (diff)
downloadruby-0cdad3b92a7e117bc7e36779140f5c83b07ca7ce.tar.gz
Add `RUBY_REFERENCES`
Instead of `RUBY_REFERENCES_START` and `RUBY_REFERENCES_END`, so that auto-indent works well.
Diffstat (limited to 'include/ruby')
-rw-r--r--include/ruby/internal/gc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/ruby/internal/gc.h b/include/ruby/internal/gc.h
index 4ca379c4ba..ac9dfd8842 100644
--- a/include/ruby/internal/gc.h
+++ b/include/ruby/internal/gc.h
@@ -47,7 +47,8 @@ RBIMPL_SYMBOL_EXPORT_BEGIN()
#define RUBY_REF_EDGE(s, p) offsetof(s, p)
#define RUBY_REFS_LIST_PTR(l) (RUBY_DATA_FUNC)(l)
#define RUBY_REF_END SIZE_MAX
-#define RUBY_REFERENCES_START(t) static const size_t t[] = {
+#define RUBY_REFERENCES(t) static const size_t t[]
+#define RUBY_REFERENCES_START(t) RUBY_REFERENCES(t) = {
#define RUBY_REFERENCES_END RUBY_REF_END, };
/* gc.c */