summaryrefslogtreecommitdiff
path: root/include/ruby/internal/attr/deprecated.h
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2021-03-11 16:34:49 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2021-09-10 20:00:06 +0900
commitd43accae15cdfc245052f6b08c5880913a35ae9e (patch)
tree45957262e9bb5e64acf318fe6a9fe8e713ed7813 /include/ruby/internal/attr/deprecated.h
parent4f97917474ea67a711e89e6051047d4e657a9774 (diff)
include/ruby/internal/intern/object.h: add doxygen
Must not be a bad idea to improve documents. [ci skip]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4815
Diffstat (limited to 'include/ruby/internal/attr/deprecated.h')
-rw-r--r--include/ruby/internal/attr/deprecated.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/ruby/internal/attr/deprecated.h b/include/ruby/internal/attr/deprecated.h
index 6c27e36785..e1bbdbd15a 100644
--- a/include/ruby/internal/attr/deprecated.h
+++ b/include/ruby/internal/attr/deprecated.h
@@ -64,4 +64,12 @@
# define RBIMPL_ATTR_DEPRECATED(msg) /* void */
#endif
+/** This is when a function is used internally (for backwards compatibility
+ * etc.), but extension libraries must consider it deprecated. */
+#if defined(RUBY_EXPORT)
+# define RBIMPL_ATTR_DEPRECATED_EXT(msg) /* void */
+#else
+# define RBIMPL_ATTR_DEPRECATED_EXT(msg) RBIMPL_ATTR_DEPRECATED(msg)
+#endif
+
#endif /* RBIMPL_ATTR_DEPRECATED_H */