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

Ruby 3.4.6p54 (2025-09-16 revision dbd83256b1cec76c69756ecb8758b9e1079833de)

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