Ruby 2.0.0p247(2013-06-27revision41674)

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

classext.h
Go to the documentation of this file.
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
10 typedef 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