Merge pull request #2590 from cubicdaiya/issues/inline2

Add inline to str_with_class().
This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-09-09 09:57:30 +09:00
+1 -1
View File
@@ -167,7 +167,7 @@ str_new(mrb_state *mrb, const char *p, size_t len)
return s;
}
static void
static inline void
str_with_class(mrb_state *mrb, struct RString *s, mrb_value obj)
{
s->c = mrb_str_ptr(obj)->c;