mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #2077 from take-cheeze/rstruct_macro
Use RARRAY_* macro instead of accessing RArray field.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user