зеркало из https://github.com/github/ruby.git
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:
Родитель
6699debd61
Коммит
f5faaf7b9a
|
@ -1,6 +1,14 @@
|
|||
#ifndef RUBY_RUBY_BACKWARD_H
|
||||
#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) \
|
||||
NORETURN(ERRORFUNC(("deprecated since "#ver), DEPRECATED(void func(void))))
|
||||
|
||||
|
|
|
@ -910,13 +910,6 @@ struct RObject {
|
|||
RCLASS_IV_INDEX_TBL(rb_obj_class(o)) : \
|
||||
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 RMODULE_IV_TBL(m) RCLASS_IV_TBL(m)
|
||||
#define RMODULE_CONST_TBL(m) RCLASS_CONST_TBL(m)
|
||||
|
|
Загрузка…
Ссылка в новой задаче