From 8b719a3c92918f0456c16de5393970c6dfe045ce Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 5 Feb 2006 15:43:10 +0000 Subject: * 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 --- ruby.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ruby.h') 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; -- cgit v1.1