summaryrefslogtreecommitdiff
path: root/ruby.h
diff options
context:
space:
mode:
Diffstat (limited to 'ruby.h')
-rw-r--r--ruby.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ruby.h b/ruby.h
index 0a75902b87..68e2ce5791 100644
--- a/ruby.h
+++ b/ruby.h
@@ -344,6 +344,8 @@ struct RString {
VALUE shared;
} aux;
};
+#define RSTRING_PTR(s) (RSTRING(s)->ptr)
+#define RSTRING_LEN(s) (RSTRING(s)->len)
struct RArray {
struct RBasic basic;
@@ -354,6 +356,8 @@ struct RArray {
} aux;
VALUE *ptr;
};
+#define RARRAY_PTR(s) (RARRAY(s)->ptr)
+#define RARRAY_LEN(s) (RARRAY(s)->len)
struct RRegexp {
struct RBasic basic;