struct_pos_num
is no longer used
This commit is contained in:
parent
73388aff5e
commit
c5ec05d047
8
struct.c
8
struct.c
@ -263,14 +263,6 @@ new_struct(VALUE name, VALUE super)
|
|||||||
|
|
||||||
NORETURN(static void invalid_struct_pos(VALUE s, VALUE idx));
|
NORETURN(static void invalid_struct_pos(VALUE s, VALUE idx));
|
||||||
|
|
||||||
static inline long
|
|
||||||
struct_pos_num(VALUE s, VALUE idx)
|
|
||||||
{
|
|
||||||
long i = NUM2INT(idx);
|
|
||||||
if (i < 0 || i >= RSTRUCT_LEN(s)) invalid_struct_pos(s, idx);
|
|
||||||
return i;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
define_aref_method(VALUE nstr, VALUE name, VALUE off)
|
define_aref_method(VALUE nstr, VALUE name, VALUE off)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user