summaryrefslogtreecommitdiff
path: root/include/ruby/ruby.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ruby/ruby.h')
-rw-r--r--include/ruby/ruby.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index 1838a39..e860336 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -892,6 +892,9 @@ struct RArray {
RARRAY(a)->as.heap.ptr)
#define RARRAY_LENINT(ary) rb_long2int(RARRAY_LEN(ary))
+#define RARRAY_AREF(a, i) (RARRAY_PTR(a)[i])
+#define RARRAY_ASET(a, i, v) do {RARRAY_PTR(a)[i] = (v);} while (0)
+
struct RRegexp {
struct RBasic basic;
struct re_pattern_buffer *ptr;