mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
backward.h: 2.2 deprecated features
* include/ruby/backward.h (DECLARE_DEPRECATED_FEATURE): move features deprecated at 2.2. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bd26c796a1
commit
556a1352e4
7 changed files with 20 additions and 65 deletions
|
@ -1,6 +1,26 @@
|
|||
#ifndef RUBY_RUBY_BACKWARD_H
|
||||
#define RUBY_RUBY_BACKWARD_H 1
|
||||
|
||||
#define DECLARE_DEPRECATED_FEATURE(ver, func) \
|
||||
NORETURN(ERRORFUNC(("deprecated since "#ver), DEPRECATED(void func(void))))
|
||||
|
||||
/* eval.c */
|
||||
DECLARE_DEPRECATED_FEATURE(2.2, rb_disable_super);
|
||||
DECLARE_DEPRECATED_FEATURE(2.2, rb_enable_super);
|
||||
|
||||
/* hash.c */
|
||||
DECLARE_DEPRECATED_FEATURE(2.2, rb_hash_iter_lev);
|
||||
DECLARE_DEPRECATED_FEATURE(2.2, rb_hash_ifnone);
|
||||
|
||||
/* string.c */
|
||||
DECLARE_DEPRECATED_FEATURE(2.2, rb_str_associate);
|
||||
DECLARE_DEPRECATED_FEATURE(2.2, rb_str_associated);
|
||||
|
||||
/* vm.c */
|
||||
DECLARE_DEPRECATED_FEATURE(2.2, rb_clear_cache);
|
||||
DECLARE_DEPRECATED_FEATURE(2.2, rb_frame_pop);
|
||||
|
||||
/* from version.c */
|
||||
#ifndef RUBY_SHOW_COPYRIGHT_TO_DIE
|
||||
# define RUBY_SHOW_COPYRIGHT_TO_DIE 1
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue