Ruby: include/ruby/backward/2/r_cast.h Source File

Ruby 4.0.6p0 (2026-07-14 revision 03b6d3f8898a28604fe6cb00eae3226b821168f4)

r_cast.h
1#ifndef RUBY_BACKWARD2_R_CAST_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RUBY_BACKWARD2_R_CAST_H
24#define R_CAST(st) (struct st*)
25#define RMOVED(obj) (R_CAST(RMoved)(obj))
26
27#if defined(__GNUC__)
28# warning R_CAST and RMOVED are deprecated
29#elif defined(_MSC_VER)
30# pragma message("warning: R_CAST and RMOVED are deprecated")
31#endif
32#endif /* RUBY_BACKWARD2_R_CAST_H */