summaryrefslogtreecommitdiffhomepage
path: root/src/string.c
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-09-13 22:28:04 +0900
committerYukihiro Matsumoto <[email protected]>2012-09-13 22:28:04 +0900
commitf0f113ef0edcf7a396053308d6352ee2ded7a7f3 (patch)
treeac672c47653cdcd7291df489e84317df13ec08e0 /src/string.c
parent8d97a8e069f2d30c882f9d287463de8ff6eabc0c (diff)
downloadmruby-f0f113ef0edcf7a396053308d6352ee2ded7a7f3.tar.gz
mruby-f0f113ef0edcf7a396053308d6352ee2ded7a7f3.zip
should define String#+ (non inlined); close #469
Diffstat (limited to 'src/string.c')
-rw-r--r--src/string.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/string.c b/src/string.c
index 7077e9dfd..57bbbc831 100644
--- a/src/string.c
+++ b/src/string.c
@@ -379,7 +379,10 @@ mrb_str_plus(mrb_state *mrb, mrb_value a, mrb_value b)
static mrb_value
mrb_str_plus_m(mrb_state *mrb, mrb_value self)
{
- return mrb_nil_value();
+ mrb_value str;
+
+ mrb_get_args(mrb, "S", &str);
+ return mrb_str_plus(mrb, self, str);
}
/*