aboutsummaryrefslogtreecommitdiffstats
path: root/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'error.c')
-rw-r--r--error.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/error.c b/error.c
index 709fcf3612..5c21229cbd 100644
--- a/error.c
+++ b/error.c
@@ -268,6 +268,14 @@ rb_warning(const char *fmt, ...)
}
}
+VALUE
+rb_warning_string(const char *fmt, ...)
+{
+ with_warning_string(mesg, 0, fmt) {
+ }
+ return mesg;
+}
+
#if 0
void
rb_enc_warning(rb_encoding *enc, const char *fmt, ...)