diff options
| author | take_cheeze <[email protected]> | 2014-04-18 23:19:25 +0900 |
|---|---|---|
| committer | take_cheeze <[email protected]> | 2014-04-18 23:19:25 +0900 |
| commit | bac70ad81de8d5198b3677ddae81bb13b46899db (patch) | |
| tree | fd2449c9ee3cf4b34171fa04258fae6de0a6ce9e /mrbgems/mruby-struct/src/struct.c | |
| parent | 4918e5ec65511728594319d389af78a610997eb8 (diff) | |
| download | mruby-bac70ad81de8d5198b3677ddae81bb13b46899db.tar.gz mruby-bac70ad81de8d5198b3677ddae81bb13b46899db.zip | |
Use RARRAY_* macro instead of accessing RArray field.
Diffstat (limited to 'mrbgems/mruby-struct/src/struct.c')
| -rw-r--r-- | mrbgems/mruby-struct/src/struct.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mrbgems/mruby-struct/src/struct.c b/mrbgems/mruby-struct/src/struct.c index 4f4c3533e..6932bb372 100644 --- a/mrbgems/mruby-struct/src/struct.c +++ b/mrbgems/mruby-struct/src/struct.c @@ -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) |
