Ruby  2.0.0p247(2013-06-27revision41674)
include/ruby/backward/classext.h
Go to the documentation of this file.
00001 #if   defined __GNUC__
00002 #warning use of RClass internals is deprecated
00003 #elif defined _MSC_VER || defined __BORLANDC__
00004 #pragma message("warning: use of RClass internals is deprecated")
00005 #endif
00006 
00007 #ifndef RUBY_BACKWARD_CLASSEXT_H
00008 #define RUBY_BACKWARD_CLASSEXT_H 1
00009 
00010 typedef struct rb_deprecated_classext_struct {
00011     VALUE super;
00012 } rb_deprecated_classext_t;
00013 
00014 #undef RCLASS_SUPER(c)
00015 #define RCLASS_EXT(c) ((rb_deprecated_classext_t *)RCLASS(c)->ptr)
00016 #define RCLASS_SUPER(c) (RCLASS_EXT(c)->super)
00017 
00018 #endif  /* RUBY_BACKWARD_CLASSEXT_H */
00019