Commit c01082e2 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #2590 from cubicdaiya/issues/inline2

Add inline to str_with_class().
parents d23bc85b cfb321e8
...@@ -167,7 +167,7 @@ str_new(mrb_state *mrb, const char *p, size_t len) ...@@ -167,7 +167,7 @@ str_new(mrb_state *mrb, const char *p, size_t len)
return s; return s;
} }
static void static inline void
str_with_class(mrb_state *mrb, struct RString *s, mrb_value obj) str_with_class(mrb_state *mrb, struct RString *s, mrb_value obj)
{ {
s->c = mrb_str_ptr(obj)->c; s->c = mrb_str_ptr(obj)->c;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment