1#if   defined __GNUC__
2#warning use of RClass internals is deprecated
3#elif defined _MSC_VER || defined __BORLANDC__
4#pragma message("warning: use of RClass internals is deprecated")
5#endif
6
7#ifndef RUBY_BACKWARD_CLASSEXT_H
8#define RUBY_BACKWARD_CLASSEXT_H 1
9
10typedef struct rb_deprecated_classext_struct {
11    VALUE super;
12} rb_deprecated_classext_t;
13
14#undef RCLASS_SUPER(c)
15#define RCLASS_EXT(c) ((rb_deprecated_classext_t *)RCLASS(c)->ptr)
16#define RCLASS_SUPER(c) (RCLASS_EXT(c)->super)
17
18#endif	/* RUBY_BACKWARD_CLASSEXT_H */
19