summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-07-22 13:02:33 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-08-27 15:02:52 +0900
commit442525527e2fa052e6d8752adffeaa0855b75ff7 (patch)
treea81fd79a541d92164e8a8c3c7895ceeab5f4404b /include
parent21b3bc10d3626272683e085b2b3ea62d2c05b1d7 (diff)
improve deprecation warning
We should not recommend RBIMPL_*.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3341
Diffstat (limited to 'include')
-rw-r--r--include/ruby/backward/2/attributes.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/include/ruby/backward/2/attributes.h b/include/ruby/backward/2/attributes.h
index 74dca627fb..eaff9e3381 100644
--- a/include/ruby/backward/2/attributes.h
+++ b/include/ruby/backward/2/attributes.h
@@ -61,21 +61,18 @@
#undef DEPRECATED_TYPE
#if defined(__GNUC__)
-# define DEPRECATED_TYPE(mesg, decl) \
- _Pragma("message \"DEPRECATED_TYPE is deprecated, " \
- "use RBIMPL_ATTR_DEPRECATED instead\""); \
+# define DEPRECATED_TYPE(mesg, decl) \
+ _Pragma("message \"DEPRECATED_TYPE is deprecated\""); \
decl RBIMPL_ATTR_DEPRECATED(mseg)
#elif defined(_MSC_VER)
# pragma deprecated(DEPRECATED_TYPE)
# define DEPRECATED_TYPE(mesg, decl) \
__pragma(message(__FILE__"("STRINGIZE(__LINE__)"): warning: " \
- "DEPRECATED_TYPE is deprecated, " \
- "use RBIMPL_ATTR_DEPRECATED instead")) \
+ "DEPRECATED_TYPE is deprecated")) \
decl RBIMPL_ATTR_DEPRECATED(mseg)
#else
# define DEPRECATED_TYPE(mesg, decl) \
- <-<-"DEPRECATED_TYPE is deprecated, " \
- "use RBIMPL_ATTR_DEPRECATED instead"->->
+ <-<-"DEPRECATED_TYPE is deprecated"->->
#endif
#undef RUBY_CXX_DEPRECATED