Skip to content

Commit

Permalink
Added macro RSTRING_GETMEM
Browse files Browse the repository at this point in the history
  • Loading branch information
Yorick Peterse committed May 8, 2015
1 parent b7f4f94 commit 28834a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vm/include/capi/ruby/ruby.h
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,9 @@ struct RString {
#define RSTRING(str) capi_rstring_struct(str, RSTRING_CACHE_SAFE)
#endif

#define RSTRING_GETMEM(rb_str, c_str, c_str_len) \
((c_str) = RSTRING_PTR(rb_str), (c_str_len) = RSTRING_LEN(rb_str))

struct RArray {
ssize_t len;
struct {
Expand Down

0 comments on commit 28834a4

Please sign in to comment.