Use RARRAY_* macro instead of accessing RArray field.

This commit is contained in:
take_cheeze
2014-04-18 23:19:25 +09:00
parent 4918e5ec65
commit bac70ad81d
+2 -3
View File
@@ -12,9 +12,8 @@
#include "mruby/class.h"
#include "mruby/variable.h"
#define RSTRUCT_ARY(st) mrb_ary_ptr(st)
#define RSTRUCT_LEN(st) RSTRUCT_ARY(st)->len
#define RSTRUCT_PTR(st) RSTRUCT_ARY(st)->ptr
#define RSTRUCT_LEN(st) RARRAY_LEN(st)
#define RSTRUCT_PTR(st) RARRAY_PTR(st)
static struct RClass *
struct_class(mrb_state *mrb)