summaryrefslogtreecommitdiff
path: root/internal/imemo.h
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-07-22 14:44:25 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-08-27 15:03:36 +0900
commitcd1d6d90299d727ad4a87c42f3ba09c87df2bce3 (patch)
treef0d1c0cd85db7296a28824f1758bf7344e8881af /internal/imemo.h
parent442525527e2fa052e6d8752adffeaa0855b75ff7 (diff)
downloadruby-cd1d6d90299d727ad4a87c42f3ba09c87df2bce3.tar.gz
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.
Diffstat (limited to 'internal/imemo.h')
-rw-r--r--internal/imemo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/imemo.h b/internal/imemo.h
index 29318f10cd..d10f89cb86 100644
--- a/internal/imemo.h
+++ b/internal/imemo.h
@@ -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) \