2011-06-17 23:05:11 -04:00
|
|
|
#if defined __GNUC__
|
|
|
|
#warning use of RClass internals is deprecated
|
2015-10-17 22:10:34 -04:00
|
|
|
#elif defined _MSC_VER
|
2011-06-17 23:05:11 -04:00
|
|
|
#pragma message("warning: use of RClass internals is deprecated")
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef RUBY_BACKWARD_CLASSEXT_H
|
|
|
|
#define RUBY_BACKWARD_CLASSEXT_H 1
|
|
|
|
|
|
|
|
typedef struct rb_deprecated_classext_struct {
|
|
|
|
VALUE super;
|
|
|
|
} rb_deprecated_classext_t;
|
|
|
|
|
|
|
|
#undef RCLASS_SUPER(c)
|
|
|
|
#define RCLASS_EXT(c) ((rb_deprecated_classext_t *)RCLASS(c)->ptr)
|
2013-12-20 00:10:07 -05:00
|
|
|
#define RCLASS_SUPER(c) (RCLASS(c)->super)
|
2011-06-17 23:05:11 -04:00
|
|
|
|
|
|
|
#endif /* RUBY_BACKWARD_CLASSEXT_H */
|