diff options
author | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-27 12:07:43 +0000 |
---|---|---|
committer | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-27 12:07:43 +0000 |
commit | ee3ea93fbaa1e7a1ef09b4b4cc45c67d89c0f738 (patch) | |
tree | 107b6299c92cefc50928b8f86f737aa087f177a9 /internal.h | |
parent | b575b934d80216969543535b0a05ffaab8ea030b (diff) | |
download | ruby-ee3ea93fbaa1e7a1ef09b4b4cc45c67d89c0f738.tar.gz |
Send the backtrace of the circular require warning as a single String to Warning.warn
* load.c: send as a single string.
* error.c: expose the string formatted by rb_warning as rb_warning_string().
* test/ruby/test_exception.rb: update tests.
[ruby-core:80850] [Bug #13505]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal.h b/internal.h index 53f31b7804..cab6c8a545 100644 --- a/internal.h +++ b/internal.h @@ -1140,6 +1140,7 @@ NORETURN(void ruby_deprecated_internal_feature(const char *)); #define DEPRECATED_INTERNAL_FEATURE(func) \ (ruby_deprecated_internal_feature(func), UNREACHABLE) VALUE rb_warning_warn(VALUE mod, VALUE str); +VALUE rb_warning_string(const char *fmt, ...); /* eval.c */ VALUE rb_refinement_module_get_refined_class(VALUE module); |