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

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

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