1
0
Fork 0
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:
卜部昌平 2020-07-22 14:44:25 +09:00
parent 442525527e
commit cd1d6d9029
Notes: git 2020-08-27 15:04:00 +09:00
12 changed files with 17 additions and 10 deletions

View file

@ -41,7 +41,7 @@ struct RFloat {
double float_value;
};
#define RFLOAT(obj) (R_CAST(RFloat)(obj))
#define RFLOAT(obj) ((struct RFloat *)(obj))
/* numeric.c */
int rb_num_to_uint(VALUE val, unsigned int *ret);