diff options
author | 卜部昌平 <[email protected]> | 2020-07-22 15:37:28 +0900 |
---|---|---|
committer | 卜部昌平 <[email protected]> | 2020-08-27 16:42:06 +0900 |
commit | 5ca44076f47dce3a70b5f4755f5195f0f9093fc4 (patch) | |
tree | d812ed884ac93ee97b53ae114bc456f07a008ebb /include/ruby/backward | |
parent | 2038cc6cab6ceeffef3ec3a765c70ae684f829ed (diff) |
include/ruby/backward/2/rmodule.h: deprecate
Only one function in only one file uses contents of this public header.
That is not a wise idea. Let's just free the header's soul.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3347
Diffstat (limited to 'include/ruby/backward')
-rw-r--r-- | include/ruby/backward/2/rmodule.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/ruby/backward/2/rmodule.h b/include/ruby/backward/2/rmodule.h index 81ce91395f..a3e2d39f35 100644 --- a/include/ruby/backward/2/rmodule.h +++ b/include/ruby/backward/2/rmodule.h @@ -28,4 +28,10 @@ #define RMODULE_CONST_TBL(m) RCLASS_CONST_TBL(m) #define RMODULE_M_TBL(m) RCLASS_M_TBL(m) #define RMODULE_SUPER(m) RCLASS_SUPER(m) + +#if defined(__GNUC__) +# warning RMODULE_* macros are deprecated +#elif defined(_MSC_VER) +# pragma message("warning: RMODULE_* macros are deprecated") +#endif #endif /* RUBY_BACKWARD2_RMODULE_H */ |