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

Ruby 3.2.5p208 (2024-07-26 revision 31d0f1a2e7dbfb60731d1f05b868e1d578cda493)

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 */