diff options
| author | Tatsuhiko Kubo <[email protected]> | 2014-09-09 00:44:49 +0900 |
|---|---|---|
| committer | Tatsuhiko Kubo <[email protected]> | 2014-09-09 00:44:49 +0900 |
| commit | cfb321e877b0682a15dcca23ff3f17bb2dc096c3 (patch) | |
| tree | 377642137a1b4e8650e50be4ba226779adf6fe78 | |
| parent | d23bc85b546af771b875f2ae3beaaa5c141683db (diff) | |
| download | mruby-cfb321e877b0682a15dcca23ff3f17bb2dc096c3.tar.gz mruby-cfb321e877b0682a15dcca23ff3f17bb2dc096c3.zip | |
Add inline to str_with_class().
| -rw-r--r-- | src/string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.c b/src/string.c index 56827922b..c1041f4be 100644 --- a/src/string.c +++ b/src/string.c @@ -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; |
