mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
backward.h: RClassDeprecated
* include/ruby/backward.h (RClassDeprecated): move from ruby/ruby.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6699debd61
commit
f5faaf7b9a
2 changed files with 8 additions and 7 deletions
|
@ -1,6 +1,14 @@
|
||||||
#ifndef RUBY_RUBY_BACKWARD_H
|
#ifndef RUBY_RUBY_BACKWARD_H
|
||||||
#define RUBY_RUBY_BACKWARD_H 1
|
#define RUBY_RUBY_BACKWARD_H 1
|
||||||
|
|
||||||
|
#define RClass RClassDeprecated
|
||||||
|
#ifndef __cplusplus
|
||||||
|
DEPRECATED_TYPE(("RClass is internal use only"),
|
||||||
|
struct RClass {
|
||||||
|
struct RBasic basic;
|
||||||
|
});
|
||||||
|
#endif
|
||||||
|
|
||||||
#define DECLARE_DEPRECATED_FEATURE(ver, func) \
|
#define DECLARE_DEPRECATED_FEATURE(ver, func) \
|
||||||
NORETURN(ERRORFUNC(("deprecated since "#ver), DEPRECATED(void func(void))))
|
NORETURN(ERRORFUNC(("deprecated since "#ver), DEPRECATED(void func(void))))
|
||||||
|
|
||||||
|
|
|
@ -910,13 +910,6 @@ struct RObject {
|
||||||
RCLASS_IV_INDEX_TBL(rb_obj_class(o)) : \
|
RCLASS_IV_INDEX_TBL(rb_obj_class(o)) : \
|
||||||
ROBJECT(o)->as.heap.iv_index_tbl)
|
ROBJECT(o)->as.heap.iv_index_tbl)
|
||||||
|
|
||||||
#define RClass RClassDeprecated
|
|
||||||
#ifndef __cplusplus
|
|
||||||
DEPRECATED_TYPE(("RClass is internal use only"),
|
|
||||||
struct RClass {
|
|
||||||
struct RBasic basic;
|
|
||||||
});
|
|
||||||
#endif
|
|
||||||
#define RCLASS_SUPER(c) rb_class_get_superclass(c)
|
#define RCLASS_SUPER(c) rb_class_get_superclass(c)
|
||||||
#define RMODULE_IV_TBL(m) RCLASS_IV_TBL(m)
|
#define RMODULE_IV_TBL(m) RCLASS_IV_TBL(m)
|
||||||
#define RMODULE_CONST_TBL(m) RCLASS_CONST_TBL(m)
|
#define RMODULE_CONST_TBL(m) RCLASS_CONST_TBL(m)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue