mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
include/ruby/backward/2/r_cast.h: deprecate
Remove all usages of RCAST() so that the header file can be excluded from ruby/ruby.h's dependency.
This commit is contained in:
parent
442525527e
commit
cd1d6d9029
Notes:
git
2020-08-27 15:04:00 +09:00
12 changed files with 17 additions and 10 deletions
|
@ -117,7 +117,7 @@ struct MEMO {
|
|||
/* ment is in method.h */
|
||||
|
||||
#define THROW_DATA_P(err) imemo_throw_data_p((VALUE)err)
|
||||
#define MEMO_CAST(m) (R_CAST(MEMO)(m))
|
||||
#define MEMO_CAST(m) ((struct MEMO *)(m))
|
||||
#define MEMO_NEW(a, b, c) ((struct MEMO *)rb_imemo_new(imemo_memo, (VALUE)(a), (VALUE)(b), (VALUE)(c), 0))
|
||||
#define MEMO_FOR(type, value) ((type *)RARRAY_PTR(value))
|
||||
#define NEW_MEMO_FOR(type, value) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue