Skip to content

Commit

Permalink
add RSTRING_LENINT
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 committed Dec 24, 2011
1 parent 06b52c8 commit 669a129
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/ruby/ruby.h
Expand Up @@ -464,6 +464,7 @@ long rb_str_clen(VALUE);
#define RSTRING_PTR(str) (rb_str_cstr((VALUE)str))
#define RSTRING_LEN(str) (rb_str_clen((VALUE)str))
#define RSTRING_END(str) (RSTRING_PTR(str)+RSTRING_LEN(str))
#define RSTRING_LENINT(str) rb_long2int(RSTRING_LEN(str))

long rb_ary_len(VALUE);
VALUE rb_ary_elt(VALUE, long);
Expand Down

0 comments on commit 669a129

Please sign in to comment.