summaryrefslogtreecommitdiff
path: root/ruby.h
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-02-05 15:43:10 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-02-05 15:43:10 +0000
commit8b719a3c92918f0456c16de5393970c6dfe045ce (patch)
tree5b75447084e6f50e41d2c8ff9fe82cf0c29a4063 /ruby.h
parent40f7a28c6495e29759ce350b2c9b9fd901231eb4 (diff)
* ruby.h (RSTRUCT_LEN, RSTRUCT_PTR): defined for source level
compatibility with ruby 1.9. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.h')
-rw-r--r--ruby.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ruby.h b/ruby.h
index 37e84b6..70e00ee 100644
--- a/ruby.h
+++ b/ruby.h
@@ -401,6 +401,8 @@ struct RStruct {
long len;
VALUE *ptr;
};
+#define RSTRUCT_LEN(st) (RSTRUCT(st)->len)
+#define RSTRUCT_PTR(st) (RSTRUCT(st)->ptr)
struct RBignum {
struct RBasic basic;